Notifications 通过开放图通知

Notifications 通过开放图通知,notifications,facebook-opengraph,Notifications,Facebook Opengraph,我在Facebook上添加通知时遇到问题 根据: https://developers.facebook.com/docs/reference/api/user/#notifications 我准备请求: https://graph.facebook.com/FACEBOOK_USER_ID/notifications?template=hello&href=track_123&access_token=USER_ACCESS_TOKEN 但我得到的回应是: 对不起,出了点问题

我在Facebook上添加通知时遇到问题

根据:

https://developers.facebook.com/docs/reference/api/user/#notifications

我准备请求:

https://graph.facebook.com/FACEBOOK_USER_ID/notifications?template=hello&href=track_123&access_token=USER_ACCESS_TOKEN
但我得到的回应是:

对不起,出了点问题。 我们正在努力尽快把这个修好


此请求正确吗?

上述url中有一个小问题,要使用的访问令牌不是用户的,而是您的应用程序的。首先,您需要通过使用下面的get调用获取您的app access_令牌

GET https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID
       &client_secret=YOUR_APP_SECRET
       &&grant_type=client_credentials
这将返回您需要在上述url中使用的应用程序访问令牌

希望这能解决你的问题