Will it be possible to extend this module to create/edit events on fb
We can map node fields with fb Event date, event description, image etc...

Comments

vinoth.3v’s picture

Assigned: Unassigned » vinoth.3v

It would be very nice feature. I will add this to road map.

vinoth.3v’s picture

Title: Create/edit fb event » Create/edit events on Facebook
pribeh’s picture

subscribe.

milos.kroulik’s picture

subscribe

daco’s picture

subscribe

drupa11y’s picture

subscribe

devkinetic’s picture

subscribing, would love to see this feature on d6 when it's backported

patoshi’s picture

++

socialnicheguru’s picture

Can someone check to see if there is a create method for events in the GraphAPI?

Is the GraphAPI the right one to even the right one to take a look at?

I was trying to figure this out.

In the RestAPI there was a method called create.

But they are deprecating it.

In the GraphAPI there is no such method.

Can someone check the accuracy of that?

I didn't see it but it could be called something else now.

That would be the first step I think.

pyrello’s picture

@SocialNicheGuru, that appears to be accurate.

On the Graph API Event page, there doesn't seem to be any indication that you can currently create an event: https://developers.facebook.com/docs/reference/api/event/

The only references to creating anything in relation to events is to create links, posts, and videos on the wall of the event.

There is the legacy rest option for doing this, although I am not sure if it is still possible to use it: https://developers.facebook.com/docs/reference/rest/events.create/

socialnicheguru’s picture

anyone know what the 'create_event' permission is?

https://developers.facebook.com/docs/reference/api/event/

invited

Create

You can invite users to an event by issuing an HTTP POST to /EVENT_ID/invited/USER_ID. You can invite multiple users by issuing an HTTP POST to /EVENT_ID/invited?users=USER_ID1,USER_ID2,USER_ID3. Both of these require the

create_event

permission and return true if the invite is successful.

eo’s picture

vulfox’s picture

at the API Reference › Graph API › Event -page there is now links:

  • To create an event on behalf of a User: instructions here
  • To create an event on behalf of a Page: instructions here

Not sure if they were updated since you last checked.

On this thread on Stackowerflow: Facebook Requires extended permission: create_event The answer indicates that maybe you have to authenticate again to get the create_event permission :

Turns out that due to the Oauth2 change recently (probably), the permission on the old access token was gone (maybe should've thrown something like "invalid access_token" error instead...). Follow the instructions on https://developers.facebook.com/docs/authentication/ with the create_event permission in addition to manage_pages.

(the link in the quote is old)

Here are two good and pretty fresh tutorials how to create Facebook events with graph api using php:

Is this create event -feature still on someones todo list?

apoc1’s picture

Issue summary: View changes

Is this topic still alive?

event_geek’s picture

Hi guys,
I´m not sure if some of you are still interested in a solution to automatically post events from your CMS to a facebook page.
Since V2 of facebook´s graph API does not foresee "create event" anymore, we are developing a solution using a tab. We already have a prototype and some mockups, contact me if you wanna chat about it or maybe use it later!
cheers

socialnicheguru’s picture

This sounds great.

I'd love it to be an add on to drupal for Facebook or fboauth or at least not be in conflict with either.

Possible answers (this might be old info but they seem to post the event to me/event). This will not work for pages or groups/

https://developers.facebook.com/blog/post/560

// We'll create an event in this example.
  // We'll need create_event permission for this.
  $event_id = 0;
  $event_name = "New Event API Test Event";
  $event_start = time();     // We'll just start the event now.
  $event_privacy = "SECRET"; // We'll make it secret so we don't annoy folks.

http://stackoverflow.com/questions/6271423/create-an-facebook-event-usin...

var event = {  
    name: 'Name of your event', 
    description: 'Description of your event',
    location: 'Location of event',                        
    start_time: Math.round(new Date().getTime()/1000.0), // Example Start Date
    end_time: Math.round(new Date().getTime()/1000.0)+86400 // Example End Date
};

FB.api('/me/events', 'post', event, function (result) {
    console.log(result); 
});
vulfox’s picture

Is this issue still relevant or are there better solutions existing to this date?

event_geek’s picture

@socialnicheguru: according to https://developers.facebook.com/docs/graph-api/reference/v2.2/user/events facebooks graph API does not allow to post events on behalf of users nor pages. we use a custom facebook page tab to display event content. from our perspective, there is no other solution than this to integrate event information in facebook.
Since we only have customers who use wordpress, our focus is on developing a wp plugin first. if you´re up to it, you can craft a drupal integration to our API yourself??? would be great to have a little community in our back;)

vulfox’s picture

Status: Active » Closed (won't fix)

So accordind to current information: https://developers.facebook.com/docs/graph-api/reference/v2.2/event

Publishing

You cannot create events via the Graph API.

Deleting

You can't delete an event using this edge.

Updating

You can't update an event using this edge.

So won't fix.