本文介绍了Facebook API OAuthException:“发生意外错误.尝试检索特定于页面的访问令牌时,请稍后重试您的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的应用能够将状态更新发布到特定主页.我已经设置了一个应用程序并检索了它的应用程序 ID,我正在关注 Facebook 身份验证文档底部的页面登录"部分 此处.

I want my app to be able to post status updates to a specific Page. I've got an application set up and retrieved its app ID, and I'm following the the "Page Login" section at the bottom of the Facebook authentication documentation here.

第一阶段(用户向应用授予 manage_page 权限)似乎运行良好.我被重定向到这样的 URL:

The first stage (user granting the app the manage_page permission) seems to work perfectly. I get redirected to a URL like this:

http://myapp.com/#access_token=ACCESS_TOKEN&expires_in=6483

然后文档说您应该访问以下内容:

The docs then say you should access the following:

https://graph.facebook.com/me/accounts?access_token=TOKEN_FROM_ABOVE

TOKEN_FROM_ABOVE 替换为前一个请求返回的那个,这应该返回用户管理的所有页面的列表,包括每个页面的页面特定访问令牌".

replacing TOKEN_FROM_ABOVE with the one returned by the previous request, and this should return "a list of all the Pages the user administers including Page specific access token for each Page".

然而,事实并非如此.我得到的只是以下 JSON 响应:

However, it doesn't. All I get is the following JSON response:

{
    "error": {
        "message": "An unexpected error has occurred. Please retry your request later.",
        "type": "OAuthException"
    }
}

我做错了什么?我在创建应用程序时是否设置错误?错误消息的帮助不大,因此非常感谢您的帮助.

What am I doing wrong? Could I have set something up incorrectly when creating the application? The error message is less than helpful, so any assistance would be much appreciated.

推荐答案

今天早上突然开始工作——不知道为什么.

Just suddenly started working this morning—no idea why.

这篇关于Facebook API OAuthException:“发生意外错误.尝试检索特定于页面的访问令牌时,请稍后重试您的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 21:21