Facebook 跟踪谁邀请了谁
我有一个用户可以邀请他的朋友的应用程序:
var request = {
method: 'apprequests',
message: 'message here',
filters: ['app_non_users'],
data: 'is this what i need to look at?'
};
FB.ui(request, function (response) {
if (response && response.request_ids) {
}
}
现在说两个用户 A 和 A 。 B 邀请用户 C 加入应用程序,用户 C 点击了用户 B 的邀请框。我如何监控?我可以使用 php 参数发送邀请,以便我可以跟踪“http://app.facebook.com/myapp/?invitedFromUser=Id_Of_User_B”
或者 Fb.ui 中的数据选项是关键在这里?因为我似乎找不到有关特定选项的任何文档。
I have an application that a user can invite his friends:
var request = {
method: 'apprequests',
message: 'message here',
filters: ['app_non_users'],
data: 'is this what i need to look at?'
};
FB.ui(request, function (response) {
if (response && response.request_ids) {
}
}
Now say two users A & B invite user C to join the app, and user C clicks on the invite box of user B. How can i monitor that? can i send the invitation with a php parameter so i can track such as "http://app.facebook.com/myapp/?invitedFromUser=Id_Of_User_B"
Or is the data option in Fb.ui is the key here? cause i can't seem to find any documentation on the specific option.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不需要这样做,因为一旦被邀请者点击请求,Facebook 就会将“请求 ID”附加到 URL 中。
因此,您所需要做的就是阅读请求并检查请求的发送者。以下是一些可供阅读的链接:
data
参数的高级使用No need to do this, as once the invitee clicks the request Facebook will append the "request id" to the URL.
So all you need to do is to read the request and check from whom it was sent. Below are a couple of links to read:
data
parameter