In my iOS app, I get an access token using the following code:
[self.facebook authorize:[NSArray arrayWithObjects:@"user_events",
@"friends_events", nil]];
I then request my events with the following code:
[self.facebook requestWithGraphPath:@"me/events" andDelegate:friendsVC];
But as a response, I only get events I have RSVP'd to. I would like to get all my events including those I have not RSVP'd to.
Any ideas?
The Facebook SDK enables: Facebook Login - Authenticate people with their Facebook credentials. Share and Send dialogs - Enable sharing content from your app to Facebook. App Events - Log events in your application.
The Facebook SDK collects the following information when you use Facebook Login: App Events: This covers generic app events (e.g. app install, app launch) and other standard logging for product metrics (e.g. SDK loading and SDK performance). Note that some of these events (e.g. app installs, app launches etc.)
The request
/me/events
only gives you the events a user is (maybe) planning to attend. The response doesn't include events which the user has been invited to (but not responded to), or declined.
There are other requests that may be of help:
You can check if a user has been invited to an event like so:
/EVENT_ID/invited/USER_ID
RSVP status can be checked by event:
/EVENT_ID/attending
/EVENT_ID/maybe
/EVENT_ID/declined
/EVENT_ID/invited
where each request returns a list of users with the queried RSVP status.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With