Facebook Graph API Events - php

I want to make an application where I will add specific events to a webpage, and users will Login with Facebook into my website and can invite their friends to any events they want.
In the Graph API Event docs https://developers.facebook.com/docs/graph-api/reference/v2.1/event/invited it says "You cannot invite people to events via the Graph API.". However I found this https://developers.facebook.com/blog/post/560/ where it says issuing a POST request to the /event/invited edge will invite the user to the event. There is also a notice on this second link that says "We're sorry, but the information in this post is over a year old and may be outdated. You can look for updated info by browsing our docs or trying a search.".
Has anyone here tried to do this before? I want to make sure it is possible before I start writing the code. Any help would be very useful.

The blog post given in the question is dated Sept 2011. The Graph API 2.0 was introduced in April 2014. https://developers.facebook.com/docs/apps/changelog
create_event permission was deprecated in Graph API 2.0 . Applications using v2.0 and v2.1 cannot manage Facebook events. Events and event counts (no of attending users, no of maybe users, no of declined users) only can be accessed in v2.0.
I did not try it, but it seems it is not possible. If anyone finds a way to do this, please let me know!

Related

Is it possible to let user invite friends to an event with graph api?

I apologize if this is a duplicate but i couldn't find an answer to my question.
I know that it's not possible to invite user friends to an event using graph api but maybe it's possible to open a external window/modal and let user select invitable friends that are not yet associated with my web app??
The possibility to invite users to an Event got removed with v2.5 of the Graph API: https://developers.facebook.com/docs/graph-api/changelog/archive#version2.5
There is no other way. Invitable Friends got removed recently, btw.

Publish events to Facebook with API V2

With Facebook API V1 it was possible to publish event. With API V2 this is not possible anymore.
But Eventbrite still has this function.
How do they do it?
Looks like Facebook is doing V2 forced rollout in phases
Yes, according to Facebook, the process of switching all apps over to API v2 is expected to take a couple of weeks. This was stated in the Facebook Developers Group on Facebook, when they started the v1 to v2 migration.
or is treating Eventbrite preferentially.
No 3rd party app will get any special treatment – so even Eventbrite will not be able to create events via API any more, once their app is migrated to v2 as well.
This has also been stated by Facebook employees in the aforementioned group on multiple occasions. This topic has come up there frequently, also regarding f.e. removal of the ability to see all of a user’s friends or removal of the permission to access a user’s groups. People have been asking how “big players” like f.e. Hootsuite can still do those things, whereas their own apps that have been using API v2 already couldn’t – and the official answer has always been, those other apps are still using v1, but once they are migrated to v2 too, they will lose those abilities too, and there will be no special treatment or exceptions.
They are receiving special treatment from Facebook and they are using current API versions (or very near, 2.5 instead of 2.6 as of June 2016).
They keep repeating that statement ad infinitum: "No 3rd party app will get any special treatment" but it's simply not true. EventBrite is using v2.5 and V1 was phased out April last year?
You can definitely still publish facebook events directly from within EventBrite.
Facebook has a long standing record of setting double standards with regards to their API, regardless of what Zuckerberg might preach at F8 from his podium.
I got this response from Facebook - have not yet tried if this really works:
*Thank you for writing to us. We understand your reaction however please do try out sample permissions using Graph API and you would be able to understand which permission is producing the dialog you see with Everbrite.
For example the dialog you see as per stack overflow report is using the rsvp_event login permission that is available to all our developers.
https://developers.facebook.com/docs/facebook-login/permissions/ -> rsvp_event section will help you understand how you can request for one and what actions can be performed in terms of "managing your event"*

Viewing Posts On My Companies Page and Commenting On Them Or Messaging The OP

I am working on an integration script which will allow our company to view all posts on the companies facebook wall from within our CRM system and then allow support staff to comment on questions asked or in the case where something can't be discussed on the public wall have the option to send that user a private message through Facebook to request details.
Is this something which is possible with the current API and if so where would I look. I have been looking through the PHP SDK on the Facebook developer site and have been Facebook::api object but am having difficulty finding information on which methods I need to call to do what I am trying to do and how I gather the information I am after.
Cheers
The PHP SDK just provides you with methods to access the Graph API. To find out, what the Graph API is all about, please read its documentation.

Inviting app users to an app created event - is it possible?

I have a question regarding the creation of event invites by a facebook application, and the ability to invite the users who have approved that applications permissions to this event.
For example, we are a local nightclub who have an app allowing users to connect with the app to see who else is attending events etc, and keep up to date with information about the events we host. It would be ideal to be able to send an event invite to these users when we have special events or theme nights.
Currently the app has around 10,000 approved users.
Just really looking to find out if this is at all possible with the new open graph api? In particular the info provided at:
Event API Reference
How To Use the Graph API to Manage Events
There does seem to be some confusion over what these posts say can be achieved, and what actually can be achieved.. unless those that I have previously spoken to are still basing their opinions on the old rest api.
Clarification and pointers appreciated!
The HTTP POST if you use the ?users= can only handle so many IDs before the length of the url overruns. Since it's a post, you can specify the users parameter and then a comma separated list of ids for the value. Try it out here: http://developers.facebook.com/tools/explorer?method=GET&path=me

Facebook notification on third party software

Is there a fb api that allows user to get fb notification or latest wall post by friend on their own website? this means that the software will requires user fb credential.
If you are trying to create your own site that gets data from the users latest wall posts, you can use the Facebook Graph API https://developers.facebook.com/docs/reference/api/
To pull most recent wall posts (in JSON format), use:
https://graph.facebook.com/me/feed?access_token=<UserTokenHere>
The Facebook Graph API site above gives lots of good info on how to use this. If you are trying to do something else, please clarify your question.
Cheers!

Categories