Reputation: 76880
Facebook recently changed the way they handle pictures in event. Now you can upload a photo which will be displayed when you post an event to someone's wall or in a group and that you can use as a cover.
How do i get that image?
Before i was using this query
$fql[$id] =
"SELECT
eid,
name,
description,
start_time,
end_time,
venue,
location,
update_time,
has_profile_pic,
pic_big
FROM
event
WHERE
eid IN ($imploded_eids) AND start_time > $time";
but right now pic_big is returning for most of the events just
what should i do?
EDIT - i get that image for new events even if i use event_id/picture as you can see from this event 546510352049607/picture which has a cover photo https://www.facebook.com/events/546510352049607/
EDIT2 - i also opened a bug on facebook for this
Upvotes: 4
Views: 584
Reputation: 22933
There is a dedicated field for the cover photo:
pic_cover (struct): Cover picture of Event
SELECT pic_cover FROM event WHERE eid=546510352049607
The pic_cover
might give null
but this is another problem. Problem solved, otherwise this question is a duplicate.
Upvotes: 1