Andresch Serj
Andresch Serj

Reputation: 37388

get high res images for events in facebook timeline

i am receiving the timeline of a fb page, including events. The given picture for all Entries is usually a low res thumbnail.

I tryed querying for higher res images using the object id like this:

 FacebookRequest($session, 'GET', '/' . $objectId . '?fields=images', []);

But i get an error:

#100 Tried accessing nonexisting field (images) on node type (Event)

Is there any way to get the high-res pictures for events in the timeline? Am i doing something wrong here?

Upvotes: 0

Views: 40

Answers (1)

Yassine Guedidi
Yassine Guedidi

Reputation: 1715

The Event node type don't have an images field, but a Photo node have one.

So you should first get '/' . $objectId . '?fields=cover' to get the cover photo node id, and then call '/' . $coverId . '?fields=images'.

Upvotes: 1

Related Questions