1
我想通过Facebook API Graph Exlorer申请我的应用程序的authtoken,关注facebooks instructions。当我做一个GET调用一个网址具有以下形式:Facebook应用程序身份验证令牌获取错误
https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials
我收到以下错误:对我怎么可能去获得访问令牌我的应用程序将是
{
"error": {
"message": "Invalid callback",
"type": "OAuthException",
"code": 1
}
}
建议不胜感激!
如果我尝试获取访问代码编程运行下面的代码:
FB.api('/oauth/access_token?client_id={APP_ID}&client_secret={APP_SECRET}&grant_type=client_credentials', function(response) {
alert(JSON.stringify(response));
});
我收到以下错误:
{"error":"load-error: unknown"}
你遵循什么指示? – Igy
'https://graph.facebook.com/oauth/access_token? client_id = YOUR_APP_ID&client_secret = YOUR_APP_SECRET&grant_type = client_credentials'适用于我 – Igy
我添加了以上指令的链接。 –