当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - How to get the facebook profile picture in large size using SLRequest?

问题描述:

I have used the SLRequest for getting profile info and i followed the Getting user profile picture in iOS6? to get the profile image. But it returning 50x50 image dimension. I need large size of profile picture. Can anyone give me some idea to do this using SLRequest?

网友答案:

use the below URL to get the large image:

https://graph.facebook.com/fb_user_id/picture?type=large

For cover image, use the below:

http://graph.facebook.com/fb_user_id?fields=cover

this will return:

{
  "cover": {
    "id": "XXX", 
    "source": "cover_image_url", 
    "offset_y": 66
  }, 
  "id": "XXXXXX"
}
网友答案:

You can get the large image of profile picture as

[NSURL URLWithString:@"https://graph.facebook.com/me/picture?type=large"];

The type parameter supports

enum{square,small,normal,large}
分享给朋友:
您可能感兴趣的文章:
随机阅读: