facebookfacebook-javascript-sdkfacebook-events

FB API App-scoped user id forbids event invitation


On an FB application (created before April 30 2014), users to our website are given the choice of picking friends to invite to an event they create. The website is using the JS SDK v1.0.

The user ids being returned to the visitor trying out the tool are now app-scoped, instead of the former global ids pre-2.0. When such app-scoped uids are used against the /{event-id}/invited users endpoint, a response of true is passed to the callback, but the invite never reaches the target friend. Performing the same request using the former (global, pre-2.0) uid allows the invitation flow to reach its destination (and is reflected on the event page).

Additional information is that the very code for this functionality is being used with a different app id. Every other aspect of the functionality, namely listing friends, creating events, reading an users' events, and sharing on the wall work normally - our issue remains with inviting the users to an event with the returned app-scoped ids.

Has anyone faced this same issue or has any insight that can be of use?

Edit: One extra piece of information is that our application is also using XMPP for sending chat messages - this is also failing due to the app-scoped ids.


Solution

  • Two issues here - one that the application, though created before Aug 15 2014, was using API 2.0, and that the functionality I was looking for (xmpp_login), was no longer supported. We have pivoted away from this approach and are getting ready for the rewrite the new API is pushing.