2012-05-21 52 views
0

是否有任何線索,我怎麼能得到Facebook的下列東西如何通過Facebook C#SDK獲得Facebook的牆/新聞供稿/用戶圖像

  1. 新聞訂閱
  2. 用戶圖片

??? 我必須使用哪種請求?

我已經試過

dynamic p = (IDictionary<string, object>)fb.Get(userID + "/posts"); 

dynamic p = (IDictionary<string, object>)fb.Get(userID + "/feed"); 

但似乎回報同樣的事情...

爲了讓用戶我用

user = new FacebookUser(); 
dynamic u = (IDictionary<string, object>)fb.Get(userID); 

user.ID = u.id; 
user.Name = u.name; 
user.FirstName = u.first_name; 
user.LastName = u.last_name; 
user.Link = u.link; 
user.Gender = u.gender; 
user.Locale = u.locale; 

但它沒有圖片鏈接。 (http://csharpsdk.org/docs/web/getting-started沒有幫助)

謝謝!

回答

0

好吧,最後我找到了怎麼做的方法。

首先你要在這裏航行的https://developers.facebook.com/tools/explorer 實驗:)

技術上YPU不得不申請你有所有權限,並使用 即https://graph.facebook.com/your_profile_id/feed得到您的飼料。

許可的名單都可以在這裏https://developers.facebook.com/docs/authentication/permissions/

URL得到用戶的圖片,你必須建立像

https://graph.facebook.com/your_profile_id/picture

玩得開心! :)

相關問題