iosiphoneobjective-cfacebookslrequest

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?


Solution

  • 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"
    }