facebook图api图片 [英] facebook graph api picture
本文介绍了facebook图api图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用图形 API 检索好友图片.我已经设法使用这个获取我朋友的个人资料图片
How can I retrieve friends picture using graph api. I have manage to get my friends profile picture using this
https://graph.facebook.com/{user_id}
但是,我想得到我朋友发布的照片.
But, I want to get the photos my friend has posted.
我能够获得这些数据
"link": "http://www.facebook.com/photo.php?fbid=121312&set=a.23342344855.11344514&type=1",
"name": "~KAALAM moments :)",
"caption": "51 new photos",
"icon": "http://static.ak.fbcdn.net/rsrc.php/v1/yz/r/StEh3RhPvjk.gif",
"actions": [
{
"name": "Comment",
"link": "http://www.facebook.com/1140004514/posts/12234"
},
{
"name": "Like",
"link": "http://www.facebook.com/1140004514/posts/12234"
}
],
"type": "photo",
"object_id": "2554798026153",
推荐答案
要获取朋友的照片,您需要
To get your friend's pictures you will need
- 带有
friends_photos
的有效访问令牌 - HTTP GET
\{friendId}\photos
获取照片的朋友被标记
- Valid access token with
friends_photos
- HTTP GET
\{friendId}\photos
to get photo's the friend is tagged in
或
- 带有
friends_photos
的有效访问令牌 - HTTP GET
\{friendId}\albums
获取好友的相册列表,通过\{albumId}\photos
循环获取每个相册中的照片/li>
- Valid access token with
friends_photos
- HTTP GET
\{friendId}\albums
to get a friend's albums listing, loop thru it to get the photos in each album by\{albumId}\photos
在此处试用:https://developers.facebook.com/tools/explorer
这篇关于facebook图api图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文