om_jaipur
om_jaipur

Reputation: 2196

Facebook Graph API - Get friends attending an event?

I'm able to get a list of all attendees using the Facebook SDK,

FB.api("/{event-id}/attending",
  function (response) {
    if (response && !response.error) {
      /* handle the result */
    }
  }
);

I need to retrieve my friends who are attending an event using graph API. There is a way to achieve this with FQL but I don't know how to implement it.

I need the solution using Java Script.

Upvotes: 1

Views: 436

Answers (2)

Tim Nederveen
Tim Nederveen

Reputation: 135

You can now no longer request event attendees without one of the event admins' access keys (see Graph api reference). As facebook also removed the option to access friends' events for privacy reasons, there is currently no way of doing this solely via the Graph API.

Upvotes: 1

moonvader
moonvader

Reputation: 21091

It seems that you need first to get list of all users attending to the event and filter it - so that only user's friends should be left in this list

https://graph.facebook.com/v2.10/event-id/?fields=attending

Upvotes: 0

Related Questions