2010-11-05 46 views
0

我使用Facebook的C#SDK(https://github.com/facebook/csharp-sdk),我想知道是否有一個圖形API函數,可以讓用戶授予權限,以我的應用程序,像Facebook的圖形API替代user.hasAppPermission在Facebook的老REST API

https://api.facebook.com/method/users.hasAppPermission?ext_perm=offline_access&access_token=XXXXXXXXX&format=json 

所以我想一些這樣的事

https://graph.facebook.com/me/hasAppPermission 

,這樣我可以調用一個Facebook C#SDK API與此URL,並帶有參數的字典對象發佈。

謝謝!

回答

3

Facebook上添加圖表調用此:

https://graph.facebook.com/me/permissions 

返回JSON結構是這樣的:

{ 
    "data": [ 
     { 
      "read_stream":1, 
      "status_update":1, 
      "photo_upload":1, 
      "publish_stream":1, 
      "user_photos":1 
     } 
    ] 
} 

文檔: http://developers.facebook.com/docs/reference/api/user/

+0

感謝您的更新。很高興知道。 – Zhao 2011-05-19 22:14:14

2

沒有圖形調用來做你想做的。您將不得不使用REST API調用。我建議你不要使用Facebook API,因爲它沒有很多功能。嘗試FacebookSDK,因爲它是很多更先進,定期更新

+0

酷,@BeRecursive,非常感謝。將改爲使用此。 – Zhao 2010-11-06 17:19:58