다음 단계로 인해 많은 시간이 걸립니다.
1)를 사용하여 친구의 UID를 얻을 :
NSString *urlString=[NSString stringWithFormat:@"https://graph.facebook.com/me/friends?access_token=%@&fields=id,picture,name,birthday",fbGraph.accessToken];
2) 넣어 친구는 앨범 ID를 얻을 uid를 :
NSString *urlString1=[NSString stringWithFormat:@"https://graph.facebook.com/%@/albums?access_token=%@",obj.uid,fbGraph.accessToken];
NSString *album = [[[_response1 objectForKey:@"data"]objectAtIndex:j]objectForKey:@"name"];
if ([album isEqualToString:@"Profile Pictures"])
{
albumid = [[[_response1 objectForKey:@"data"]objectAtIndex:j]objectForKey:@"id"];
}
3) 그 앨범에서 사진을 얻을 수있는 앨범 ID를 넣어 :
NSString *albumUrl=[NSString stringWithFormat:@"https://graph.facebook.com/%@/photos?type=album&access_token=%@",albumid,fbGraph.accessToken];
NSString *picUrl=[[[[[_response2 objectForKey:@"data"]objectAtIndex:0]objectForKey:@"images"]objectAtIndex:0]objectForKey:@"source"];
시간을 절약하기 위해 한 번에 큰 크기의 프로필 사진을 얻으려면 다른 방법을 알려주세요.
http://stackoverflow.com/questions/30207465/ios-facebook-album- photos picker/31789234 # 31789234 –