如何获得“谁"?邀请使用iOS版Facebook App邀请SDK? [英] How to get "who" invited using Facebook App Invite SDK for iOS?

查看:174
本文介绍了如何获得“谁"?邀请使用iOS版Facebook App邀请SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图让谁"在我的应用程序上邀请某人而没有成功...环顾了FB文档,却一无所获.

I've been trying to get the "who" invited someone on my app without success... Looked around FB docs and nothing.

我的意思是:用户?"邀请朋友",朋友"在FB对话框中点击安装,将其带到App Store,由他/他安装我的应用.

What I mean is: "User??" invites "Friend", "Friend" taps install on the FB dialog which takes him to App Store, where s/he installs my app.

一旦安装了应用程序,应用程序链接"似乎不会传递到我的应用程序,并且我无法确定谁是用户?". (邀请者)

Once the app is installed, the "App Link" seems to not be passed on to my app and I can't find out who is "User??" (the inviter)

IF 该应用程序已安装在iPhone中,并且好友"单击打开",然后正确传递了应用程序链接"信息.

IF the app is already installed in the iPhone and the "Friend" clicks "open", then the "App Link" info is passed correctly.

如何获得用户"的身份? (邀请者)什么时候是新安装?还有另一种方法可以执行服务器端"等操作吗?

How can I get the identity of "User??" (the inviter) when it's a new install? Is there another way I can do this "server side" etc?

我已经找到了如何从新用户的FB等 BUT 获取请求的另一个问题:如果两个人邀请同一个新用户",如何知道他/他接受了哪个邀请?我如何获得有关申请的状态?我想我会提出另一个问题...

I've found how to get apprequests from the new user's FB etc BUT now I have another problem: If two people invite the same "new user" how to know which invite s/he accepted? How can I get status about apprequests? I think I will create another question...

推荐答案

所以,我发现了如何做.一旦新用户"安装了我的应用并注册了他的Facebook帐户,我就可以执行此操作

So, I've found out how. Once the "new user" installs my app and signs up with his 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 get all/any apprequests from my app only and I only have to check who sent it etc.

这篇关于如何获得“谁"?邀请使用iOS版Facebook App邀请SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆