Facebook的API 2.1 - 关于邀请朋友和应用范围的用户ID [英] Facebook API 2.1 - About Invite Friends And App-scoped User IDs
问题描述
Facebook will begin to issue app-scoped user IDs when people first log into an instance of your app coded against v2.0 of the API. With app-scoped IDs, the ID for the same user will be different between apps.
在邀请朋友,发送一个请求,如:{[0] = 10202585439492947,请求= 345936808908087},我能得到收件人的ID:10202585439492947,它是收件人的应用范围的用户ID
When Invite a Friend, a request send like:{to[0]=10202585439492947, request=345936808908087}, i could get the recipient's id:10202585439492947, is it the recipient's App-scoped User ID?
用户的应用范围的用户ID将始终是相同的?如果用户删除我的应用程序,然后几天后,登录到我的应用程序再次,将一如既往的应用范围的用户ID相同?
The user's App-scoped User ID will always the same? If the user remove my app,then after several days, log into my app again, will the App-scoped User ID same as before?
我要的奖励在发件人和收件人,但如果应用范围的用户ID发件人之间改变发送邀请和收件人的日志进入我的应用程序,我可以找到谁邀请新用户。
I Want Rewarding the Sender and the Recipient,But if the App-scoped User ID changed between Sender send the invite and Recipient log into my app, I could locate who invite the new user.
推荐答案
从来就只是回答了这个在另一个线程:的的Facebook的JavaScript 2.0
I´ve just answered this in another thread: facebook javascript v2.0
这是一个应用程序作用域ID,它应该保持,即使用户deauthorizes并重新授权您的应用程序一样。它总是会在一个应用程序相同,但它会在另一个应用程序不同。如果你想匹配不同的应用程序之间的ID,您可以使用业务映射API:的https:/ /developers.facebook.com/docs/apps/for-business
It is an App Scoped ID, and it should stay the same even if the user deauthorizes and authorizes your App again. It will always be same in one App, but it will be different in another App. If you want to match IDs between different Apps, you can use the Business Mapping API: https://developers.facebook.com/docs/apps/for-business
顺便说一句,你只被允许以奖励发件人如果Recepient接受了邀请,没有别的。查看平台策略: https://developers.facebook.com/policy/ - 4.5>点击小问号图标。
Btw, you are only allowed to reward the Sender if the Recepient accepted the invite, nothing else. See the platform policy: https://developers.facebook.com/policy/ - 4.5 > click on the small question mark icon.
小心,如果您正在使用invitable_friends你鸵鸟政策得到一个应用程序作用域ID,而是邀请令牌:的https://developers.facebook.com/docs/graph-api/reference/v2.1/user/invitable_friends
Careful though, if you are using "invitable_friends" you don´t get an App Scoped ID, but an "invite token": https://developers.facebook.com/docs/graph-api/reference/v2.1/user/invitable_friends
编辑:如果用户deauthorizes的App和很长一段时间后,再次授予它的作用域ID可能会改变,但你需要反正删除他的数据隐私的原因。
The Scoped ID may change if the user deauthorizes the App and authorizes it again after a long time, but you would need to delete his data anyway for privacy reasons.
这篇关于Facebook的API 2.1 - 关于邀请朋友和应用范围的用户ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!