2013-07-18 23 views
0

應用程序訪問令牌在早期工作,但在中斷更改後,應用程序停止工作。我得到的錯誤是訪問令牌在2013年7月發生變更後不起作用

(#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

不知道,但也許它會爲你工作。

加入FB的appid在info.plist中

FacebookAppID --Your FB id 

好運

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" 

        }); 
+0

這需要放在一個答案編輯您的原始信息的評論中,或 - 這是答案的部分你的問題 – JAL

相關問題