Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting all my events via Facebook iOS SDK

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?

like image 967
sentinel Avatar asked May 17 '12 12:05

sentinel


People also ask

What is Facebook SDK for iOS?

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.

What data Facebook SDK collects?

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.)


1 Answers

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.

like image 177
onosendai Avatar answered Oct 15 '22 10:10

onosendai