本文介绍了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