Create Facebook Event for Group in Facebook Charts API
What I am trying to do: At the top of the group pages, there is an events button that lists events for the group. If I open the group and click the create event button, the whole group is invited to the event, even if it is not my friend, and the βevent listβ group gets another entry. I would like to add an event using the Graph API. This account is the group administrator.
I have successfully created events in various interesting APIs but have never been able to associate them with a group.
The created event did not appear in the group: https://graph.facebook.com/ {groupID} / events? ...
another post suggested using param 'data page_id' => '{groupID}' I was thinking about trying "gid" => "{groupID}" because this is how the facebook event creation page is created. It creates an event, but the event is not associated with a group.
Nothing I've tried seems to do the trick. I click on a group in FB and can't see the event listed at the top right.
I have set scope = create_event, user_events, user_groups
Additional information: I am making an application to receive events from FB, Google Calendar or Meetup and send messages to other sites without double entry. Since it is intended for group organizers, it really should be able to send events to the group and not invite users directly.
source to share
This is a difficult question. The FB Graph 1.0 documentation is wrong:
https://developers.facebook.com/docs/graph-api/reference/v1.0/group/events
They indicate:
'POST',
'/{app-id}/groups',
array (
'name' => 'Test Group Event',
'start_time' => '2012-07-04T19:00:00-0700',
)
This is odd since it doesn't mention the group id (to which it should be bound) or what you want event
. Instead, a new group is created rather than an attached event. But using something like this should work (for a few months at least):
'POST',
'/{group-id}/events',
array (
'name' => 'Test Group Event',
'start_time' => '2012-07-04T19:00:00-0700',
)
You also need to do this with the group admin access_token. (which is the only correct advice from the docs):
User access token for group member with user_groups and create_events.
The permit has create_events
been quietly amortized as Graph API 2.0 with no mention of whether it will return or not, despite the fact that many large companies such as QuestionOne and EventBrite rely on it .
https://developers.facebook.com/docs/apps/changelog
However, if you built your app before April 2014, you can still specify version 1.0 of the Graph API and use that feature until at least April 30, 2015, when you deprecate 1.0 entirely. After that, you're out of luck.
source to share