Benjamin RD
Benjamin RD

Reputation: 12034

Obtaining facebook cover photos

How I can get the cover photo of the albums of a user in my application? Currently, I have a json like this:

"id": "00000", 
  "albums": {
    "data": [
      {
        "id": "428076573767", 
        "from": {
          "name": "Benjamin", 
          "id": "00000"
        }, 
        "name": "Profile Pictures", 
        "link": "https://www.facebook.com/album.php?fbid=00000&id=00000&aid=00000", 
        "cover_photo": "10151465301937683", 
        "privacy": "everyone", 
        "count": 57, 
        "type": "profile", 
        "created_time": "2010-09-05T08:42:19+0000", 
        "updated_time": "2013-04-27T23:53:11+0000", 
        "can_upload": false
      }, 
}

How I can get the cover_photo by URL?

Upvotes: 0

Views: 119

Answers (1)

Alpesh Prajapati
Alpesh Prajapati

Reputation: 1643

You can get cover photo by adding this into URL. No need to extract cover_photo from Json .

album['id']?>/picture?access_token=12345

  // where album is JSON array and access_token is random here..

Try this. It will work.

Upvotes: 1

Related Questions