0

应用程序访问令牌早些时候工作,但在重大更改之后,应用程序停止工作。我得到的错误是

(#200) Must have a valid access_token to access this endpoint

我已将以下代码用于访问令牌

var fb = new FacebookClient();
dynamic result = fb.Get("oauth/access_token", new {
    client_id = XXXX,
    client_secret = XXXXX,
    grant_type = "client_credentials",
    scope = "publish_stream"
});

我该如何解决这个问题?

4

2 回答 2

0

不确定,但也许它会为你工作。

在 info.plist 中添加 FB APPid

FacebookAppID --Your FB id

祝你好运

于 2013-07-18T12:57:30.940 回答
0
tried using FacebookAppId  but same error- 

dynamic result = fb.Get("oauth/access_token", new
                    {
                        client_id = ApplicationId,
                        client_secret = ApplicationSecret,
                        grant_type = "client_credentials",
                        scope = "publish_stream",
                        FacebookAppID = "xxxxxxx"

                    });
于 2013-07-18T17:07:42.803 回答