2
votes

I am using following API call to generate access token -

https://graph.facebook.com/oauth/access_token?client_id=XXXXXX&client_secret=XXXXXXX&grant_type=client_credentials

as repose from above getting Access token as following : - 162345123675615|GmRvEjertyuiNdlaBc9zuxPjhMA

So, i am using above Access Token with following APi to extend it expiration : -

https://graph.facebook.com/oauth/access_token?grant_type=fb_exchange_token&client_id=xxxxxx&client_secret=xxxxxx&fb_exchange_token=162345123675615|GmRvEjertyuiNdlaBc9zuxPjhMA

getting response from above API call : - {"error":{"message":"No user access token specified","type":"OAuthException","code":1}}

Can anyone help me on this. Is it possible to extend above type of access tokens generated from following API : - https://graph.facebook.com/oauth/access_token?client_id=XXXXXX&client_secret=XXXXXXX&grant_type=client_credentials

so ,Is it possible to extend above type of access tokens or to extend access token they need to be of other type.

1

1 Answers

6
votes

The access token you are receiving from the first call is the Application access token not the User access token - you can't extend the Application access token !