[英]How to get the photos related to a friend using facebook graph api?
我有我使用的所有朋友名單
[facebook requestWithGraphPath:@"me/friends" andDelegate:self];.
使用這個我得到了我所有朋友的ID。 我也通過使用獲得所有照片
[facebook requestWithGraphPath:@"me/photos" andDelegate:self];.
但是,我應該在requestWithGraphPath中使用什么作為參數:如果我想要與我的任何一個朋友相關的照片?
提取朋友照片的簡單技巧。
[facebook requestWithGraphPath:@"FriendID/albums" andDelegate:self];
例如
[facebook requestWithGraphPath:@"123456789/albums" andDelegate:self];
它返回專輯ID以及一些信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.