应用程序访问令牌工作得更早,但在中断更改后,应用程序停止工作。我得到的错误是
(#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"
});
如何解决此问题?
答案 0 :(得分:0)
不确定,但也许它适合你。
在info.plist中添加FB APPid
FacebookAppID --Your FB id
祝你好运
答案 1 :(得分: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"
});