2013-02-25 93 views
0

爲什麼Facebook令牌過期並且我爲某些人看到了它,有些則沒有。我正在使用以下範圍facebook oauth令牌對於某些用戶已過期

public static string _FacebookExtendedPermissions = "user_about_me,publish_stream,read_stream,user_photos"; 

是否需要添加更多內容?聽說「offline_access」已被棄用。

感謝 Sujit

+1

請閱讀本教程中的「避免OAuthException」一節(http://www.thepcwizard.in/2013/02/working-with-facebook-c--sharp-sdk.html) – ThePCWizard 2013-02-25 10:18:48

回答

0

得到了解決。您可以通過以下代碼將您的令牌延長60天

https://graph.facebook.com/oauth/access_token?grant_type=fb_exchange_token&client_id=CLIENT_ID&client_secret=CLIENT_SECRET&fb_exchange_token=SHORT_LIVED_ACCESS_TOKEN 

謝謝。 Sujit