Facebook通知API:“必须使用app access_token调用此方法” [英] Facebook notifications API: "This method must be called with an app access_token"
本文介绍了Facebook通知API:“必须使用app access_token调用此方法”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Graph API Explorer从我的应用发送Facebook通知。所以我选择了我的应用程序,POST,并在 /
I am trying to send a Facebook notification from my app using Graph API Explorer. So I have selected my app, POST, and entered this string after the /
11093774316/notifications?access_token=430xxxxxx156|HU0ygMtxxxxxxxxxxxxikVKg&template=Hello&href=index.php
访问字符串是我在访问令牌调试器上得到的,我检查它是否正常。
The access string is what I get on the "Access token debugger" and I check it is ok.
但是,我收到这个错误消息:
However, I get this error message:
{
"error": {
"message": "(#15) This method must be called with an app access_token.",
"type": "OAuthException",
"code": 15
}
}
我会说这是在一个月前工作...任何想法?
I would say it was working one month ago... Any ideas?
谢谢
推荐答案
- 尽快更改您的应用程序秘密,您不应该在这些问题中包含私人信息
- 然后,检查应用程序的高级设置,将应用程序类型设置为Web,而不是本机/桌面 - 如果是等到本机/桌面应用程序的秘密不被信任,而需要应用访问令牌的呼叫将失败。
这篇关于Facebook通知API:“必须使用app access_token调用此方法”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文