How to get “who” invited to use the Facebook application to participate in the SDK for iOS?

I'm trying to get someone to invite someone from my application without success ... I looked at the FB docs and nothing.

I mean: "User?" invites “Friend”, “Friend” installs in the FB dialog, which sends it to the App Store, where he installs my application.

Once the application is installed, the “link application” does not seem to be transferred to my application, and I can’t find out who the “user” is? (inviting)

If the application is already installed on the iPhone, and "Friend" clicks "open", then the information "Link to the application" is transmitted correctly.

How can I get the identity "User ??"? (inviter) when is the new installation? Is there any other way to do this "server side", etc.?

EDIT: I found how to get apprequests from a new FB user, etc. But now I have a different problem: if two people invite the same “new user” to find out which guest he / she has accepted? How can I get status about apprequests? I think I’ll create another question ...

+6
source share
2 answers

So, I learned how to do it. Once the “new user” installs my application and logs into my facebook account, I can execute this

GraphRequest request = GraphRequest.newGraphPathRequest( accessToken, "/me/apprequests", new GraphRequest.Callback() { @Override public void onCompleted(GraphResponse response) { // process the info received } }); request.executeAsync(); 

The above code will receive all / any apprequests from my application only , and I only need to check who sent it, etc.

+2
source

If the application is already installed on the device, do you get the “User” identity that invited “Friend”? If so, how do you do it?

Secondly, Applink will only transmit information if it opens through a notification on Facebook, and not directly through the main screen.

0
source

All Articles