I'm trying to generate app access token for facebook. I used the below request for generating the app access token.
http://graph.facebook.com/endpoint?key=value&access_token=app_id|app_secret
But I'm getting below error.
{
"error": {
"message": "(#803) Some of the aliases you requested do not exist: endpoint",
"type": "OAuthException",
"code": 803,
"fbtrace_id": "GX983WVEz1Y"
}
}
But when I copied The app is and app_secret in App Token Tool, It gave me the access token. But when I tried to generate it by sending the request, it throws above error.
Also, Do I need to add anything here:
key=value
Do I need to add client credential as a key?. Is it beacuse of this I'm getting this error?
Corrected my answer: https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET
It worked for me.