retrieve events where uid is the creator and application id is the admin - Facebook API
- by Anup Parekh
I would like to know if there is a Facebook API call to retrieve the events (eids) for all the events a user has created using my facebook connect application.
The events are created using the following REST api call:
https://api.facebook.com/method/events.create?event_info=' . $e_i . '&access_token=' . $cookie['access_token']
$e_i is the event info array where the 'host' value is set to 'Me' as follows
$event_info['host'] = 'Me';
On Facebook events under the "Created by:" section it lists "My user name,Application Name", I presume this is because I am the creator and the application is the admin as stated in the REST api documentation http://developers.facebook.com/docs/reference/rest/events.create/
Unfortunately I cannot seem to find out how (neither REST nor GPRAPH API) to return a list of events where I am the creator and the application is the admin as in the above scenario. If this is possible I would really appreciate some assistance with how it is done.
So far I have tried:
REST API events.get using uid=application_id. This only returns events created by the application not those including the user who created them
GRAPH API https://graph.facebook.com/me/events?fields=owner&access_token=... this returns all the events for 'me' but not where the application is also the admin.
It seems strange that there's no reference to the linkage between the event creator and the event admin through the API but in Facebook it is able to pull both and display them on the event details.