我们的Web应用程序将消息发布到登录用户的Facebook墙上 . 我们正在使用Facebook Graph API . 此功能在过去确实有效 . 今天尝试时,我收到一条错误消息,无法确定问题所在 .

我用我的Facebook帐户测试它,我没有拒绝任何许可 .

当用户想要将他/她的FB帐户与我们的网络应用程序连接时,该应用程序会重定向到

https://www.facebook.com/dialog/oauth/?client_id=our_ID&redirect_uri=our_URI&state=generated_string&scope=email,publish_actions&response_type=code

稍后,当应用程序调用时

https://graph.facebook.com/me/permissions?access_token=some_token

它收到回应

{
    "data":[
        {
            "permission":"email",
            "status":"granted"
        },
        {
            "permission":"public_profile",
            "status":"granted"
        },
        {
            "permission":"installed",
            "status":"granted"
        }
    ]
}

权限 publish_actions 缺失 .

当应用程序POST到

https://graph.facebook.com/me/feed?access_token=some_token

带参数

message=somemessage

返回以下错误响应

{
    "error":
    {
        "message":"(#200) The user hasn't authorized the application to perform this action",
        "type":"OAuthException",
        "code":200,
        "fbtrace_id":"FDM+n+5S14V"
    }
}

为什么突然没有批准在墙上张贴的许可?

感谢帮助 .