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
enableInsecureAuthis deprecated and will be removed in future versions. Use secure authentication withcodeandredirect_uri.- Secure authentication exchanges the
codeandredirect_uriprovided by the client for an access token using Instagram's OAuth flow.
Parameters:
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | The adapter configuration options. Properties
|
