简体   繁体   English

iOS Facebook SDK-一些信息

[英]iOS Facebook SDK - Some info

i get the facebook news feed from the requestGraphWithPath:andDelegate method. 我从requestGraphWithPath:andDelegate方法获取Facebook新闻提要。 All ok, but one things isn't clear : how can i get the user's profile photo that post the feed? 一切正常,但尚无一件事:如何获取发布供稿的用户个人资料照片? Every news has link, date, description, but i cannot find link to user's profile photo. 每个新闻都有链接,日期,描述,但我找不到指向用户个人资料照片的链接。 Thanks 谢谢

On each wall post you have a "from" field with "id" field. 在每个墙上的职位上,您都有一个“来自”字段和“ id”字段。 This is the id of the user who made the post, then you simply add "picture" suffix to that graph object to get their profile picture, example: 这是发布信息的用户的ID,然后您只需在该图形对象中添加“图片”后缀即可获取其个人资料图片,例如:
https://graph.facebook.com/ID/picture https://graph.facebook.com/ID/picture

hope this helps 希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM