Kendall
Kendall

Reputation: 5245

Get Album's cover photo

I'm trying to use the Facebook Graph Api to get the photo album's cover photo using the resource graph.facebook.com/cover_photo/picture where cover_photo is the id of the photo from the album object. However, doing this with or without a token gives me either https://fbstatic-a.akamaihd.net/rsrc.php/v1/yC/r/gtEJuZGrBLG.jpg or https://fbstatic-a.akamaihd.net/rsrc.php/v2/yA/r/gPCjrIGykBe.gif I'm not sure why though as I have the proper permissions to access the user's albums in the 1st place.

Upvotes: 0

Views: 320

Answers (1)

TommyBs
TommyBs

Reputation: 9646

Can you not just use

/album_id/picture

This should give you the cover photo according to the docs

https://developers.facebook.com/docs/reference/api/album/#connections

You need a valid access_token of course

Upvotes: 1

Related Questions