2012-05-21 103 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

玩得开心! :)

相关问题