Receiving all events that Facebook friends visited through FQL

I am trying to get a list of all the events that all my friends on facebook are attending. Here is the request:

SELECT name, venue, location, start_time, eid FROM event 
WHERE eid IN (
       SELECT eid FROM event_member 
       WHERE (uid IN (SELECT uid2 FROM friend WHERE uid1 = me())  OR uid = me())
   )
AND start_time > now()

Although I see that my friends attend certain events on facebook.com/events/list , the result of the FQL query is an emtpy array.

Does anyone have an idea why?

Thanks.

Update:

I added the user rights user_events and friends_events, as suggested in the first answer, but the list returned is still empty.

+4
source share
1 answer

Your request is in order.

  • LIMIT 20, , ,
  • user_events friends_events .

Doc: https://developers.facebook.com/docs/reference/fql/event_member

Update:

, . :

FB.login(callback, {scope: 'user_events,friends_events'});
+2

All Articles