开发者

iOS Facebook SDK - Some info

开发者 https://www.devze.com 2023-04-04 16:06 出处:网络
i get the facebook news feed from the requestGraphWithPath:andDelegate method. 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, da

i get the facebook news feed from the requestGraphWithPath:andDelegate method. 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. 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:
https://graph.facebook.com/ID/picture

hope this helps

0

精彩评论

暂无评论...
验证码 换一张
取 消