GetOAuthAccessToken
Gets an authentication token from Facebook.
Input
Name | Type | Description |
AuthMode | String | The type of authentication mode to use. Select App for getting authentication tokens via a windows forms app. Select Web for getting authentication tokens via a web app.
The allowed values are APP, WEB. The default value is APP. |
Scope | String | A comma-separated scope of permissions to request from the user. Please check the Facebook API for scope of available permissions. Permissions that may be required depending on your use case are: user_birthday,user_photos,user_videos,user_likes,user_hometown,user_location,read_insights,pages_manage_metadata,pages_read_engagement,pages_read_user_content,pages_messaging,business_management,instagram_basic,instagram_manage_insights. |
CallbackUrl | String | The URL the user will be redirected to after authorizing your application. This value must match the Site URL and App Domain you have specified in the Facebook app settings. Only needed when the Authmode parameter is Web. |
Verifier | String | The verifier returned from Facebook after the user has authorized your app to have access to their data. This value will be returned as a parameter to the callback URL in GetAuthURL. |
AuthType | String | An optional parameter to pass Facebook. Set the value to rerequest to request the same permissions again if the user declined some of them. |
State | String | Any value that you wish to be sent with the callback. |
Result Set Columns
Name | Type | Description |
OAuthAccessToken | String | The access token used for communication with Facebook. |
OAuthRefreshToken | String | This is actually the same as the OAuthAccessToken. It can be used internally to determine if the token can be refreshed. Tokens are refreshed by Facebook automatically. |
ExpiresIn | String | The remaining lifetime on the access token. A -1 denotes that it will not expire. |