我试图从我的应用程序发送Facebook通知,但实际上Graph API资源管理器仍在返回我"(#15)此方法必须使用app access_token调用。"
这就是我的所作所为:
1000000001/notifications?access_token=100000000000001|Quuuuuuuuuuuuuuuuuw&href=http://www.xxx.com/&template=Hello
虽然我以多种方式获取应用访问令牌,但我已使用此令牌删除应用请求。
$APPLICATION_ID = "APP_ID";
$APPLICATION_SECRET = "APP_SECRET";
$token_url = "https://graph.facebook.com/oauth/access_token?" .
"client_id=" . $APPLICATION_ID .
"&client_secret=" . $APPLICATION_SECRET .
"&grant_type=client_credentials";
$app_token = file_get_contents($token_url);
或
access_token = YOUR_APP_ID|YOUR_APP_SECRET
。
我知道App Access Token没有过期。
此解决方案无效。 https://stackoverflow.com/a/12771192/1022298
编辑。发明了App_id和秘密。