Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2200] iOS: Support Facebook App Invites

GitHub Issuen/a
TypeNew Feature
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-05-26T07:28:51.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsFacebook
LabelsAppInvites, facebookSDK, qe-5.4.0
ReporterMartyn Joyce
AssigneeHans Knöchel
Created2016-02-15T11:58:35.000+0000
Updated2016-07-27T17:15:28.000+0000

Description

I am aiming to get a list of a users friends in order to invite them to use our app but this is no longer possible in Graph API v2.0. The user/friends endpoint now only returns friends who also use the app. This is a design decision from Facebook and so the Titanium documented route of using presentSendRequestDialog is no longer possible for this purpose. Facebook instead now forward me to use their new service 'App Invites', however I don't believe that this has been incorporated into the Titanium module yet. Links: Facebook - Deprecating friends permissions: https://developers.facebook.com/docs/apps/faq#friends_list Facebook - How can I now invite my friends: https://developers.facebook.com/docs/apps/faq#friend_invite Facebook - App Invites main documentation: https://developers.facebook.com/docs/app-invites Thanks

Comments

  1. Sharif AbuDarda 2016-02-23

    Hello, This is an interesting feature request. With this feature anyone can integrate App Invites into their app in place where people want to invite friends to your app. When the person taps the Invite button, the feature can trigger the flow to send invites. You need to know that the new feature request is a lengthy process and it takes time release a version of the feature. The request needs to be pass by the deciding committee before it moves to developing phase. Currently, we have pending requests in out pipeline. We will let you know if and when we will release the version with the feature. Thanks.
  2. Hans Knöchel 2016-02-23

    [~martz256] Just added the dialog as part of https://github.com/appcelerator-modules/ti.facebook/pull/43, you can test it already if you want:
       fb.presentInviteDialog({
         appLink: "https://www.mydomain.com/myapplink",
         appPreviewImageLink: "https://www.mydomain.com/my_invite_image.jpg"
       });
       
  3. Hans Knöchel 2016-03-10

  4. Hans Knöchel 2016-05-23

    Reopening issue, since I did something wrong with the event naming handling caused by [this commit](https://github.com/appcelerator-modules/ti.facebook/pull/43/commits/0a64db8cc9ab2f80b8995b76cd14ce6da05f1c64). Resulting from that, all events (share/invite/gamerequest) are delivered in the "requestDialogCompleted" event, which is incorrect. Fix on it's way.
  5. Hans Knöchel 2016-05-23

    PR: https://github.com/appcelerator-modules/ti.facebook/pull/54
  6. Chee Kiat Ng 2016-05-26

    PR Approved and merged. [~hansknoechel] please remember to do a PR with the new packaged Facebook module, after the android PR is merged.
  7. Harry Bryant 2016-07-27

    Verified as fixed, I was able to send an App Invite through Facebook using the latest Facebook Module. However bear in mind that App Invites won't be received by the recipient unless the app itself is published. Tested On: iPhone 6S (9.3.2) Device Mac OSX El Capitan 10.11.5 Ti SDK: 5.4.0.v20160725003348 Appc Studio: 4.7.0.201607111053 Appc NPM: 4.2.7 App CLI: 5.4.0-34 Xcode 7.3 Node v4.4.7 *Closing ticket.*

JSON Source