InstagramAdapter

new InstagramAdapter(options)

Parse Server Configuration

To configure Parse Server for Instagram authentication, use the following structure:

{
  "auth": {
    "instagram": {
      "clientId": "your-client-id",
      "clientSecret": "your-client-secret"
    }
  }
}

Insecure Configuration (Not Recommended)

{
  "auth": {
    "instagram": {
      "enableInsecureAuth": true
    }
  }
}

The adapter requires the following authData fields:

  • Secure Authentication: code, redirect_uri.
  • Insecure Authentication (Deprecated): id, access_token.

Auth Payloads

Secure Authentication Payload

{
  "instagram": {
    "code": "lmn789opq012rst345uvw",
    "redirect_uri": "https://example.com/callback"
  }
}

Insecure Authentication Payload (Deprecated)

{
  "instagram": {
    "id": "1234567",
    "access_token": "AQXNnd2hIT6z9bHFzZz2Kp1ghiMz_RtyuvwXYZ123abc"
  }
}

Notes

  • enableInsecureAuth is deprecated and will be removed in future versions. Use secure authentication with code and redirect_uri.
  • Secure authentication exchanges the code and redirect_uri provided by the client for an access token using Instagram's OAuth flow.
Parameters:
NameTypeDescription
optionsObject

The adapter configuration options.

Properties
NameTypeAttributesDefaultDescription
clientIdstring

Your Instagram App Client ID. Required for secure authentication.

clientSecretstring

Your Instagram App Client Secret. Required for secure authentication.

enableInsecureAuthboolean<optional>
false

[DEPRECATED] Enable insecure authentication (not recommended).