Facebook的API OAuthException:“发生意外错误。请稍后再试您的请求“试图检索特定页面的访问令牌时 [英] Facebook API OAuthException: “An unexpected error has occurred. Please retry your request later” when trying to retrieve a Page-specific access token

查看:1460
本文介绍了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 由previous请求返回的之一,这应该返回所有页面的列表,用户负责管理,包括页面特定访问令牌每一页。

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"
    }
}

我是什么做错了吗?我可以有一些设置不正确创建应用程序时?错误消息是小于有帮助,所以任何帮助将是非常美联社preciated。

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:“发生意外错误。请稍后再试您的请求“试图检索特定页面的访问令牌时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆