Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I show the album cover with Facebook Graph API

This is the code to display the page-picture:

<img src="https://graph.facebook.com/157295940962451/picture"/>

How can I show the album cover of a given album in this page

like image 975
Øyvind Avatar asked Mar 12 '11 18:03

Øyvind


People also ask

What data can I get from Facebook Graph API?

The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.


1 Answers

Not sure if I am doing something wrong, but just wanted to point out that these answers did not work for me until I appended my access_token to the url:

https://graph.facebook.com/<?=$album['id']?>/picture?type=album&access_token=<?=$access_token?>
like image 69
captainclam Avatar answered Oct 11 '22 21:10

captainclam