Facebook API 2.1 - 关于邀请朋友和应用范围的用户ID [英] Facebook API 2.1 - About Invite Friends And App-scoped User IDs

查看:181
本文介绍了Facebook API 2.1 - 关于邀请朋友和应用范围的用户ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当人们首先将
记录到您的API应用程序编码的实例中时,Facebook将开始发布应用范围的用户ID。使用
应用范围的ID,同一用户的ID将在
应用程序之间不同。

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.

当邀请好友,请求发送如:{to [0] = 10202585439492947,request = 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 v2.0

I´ve just answered this in another thread: facebook javascript v2.0

这是一个App Scoped ID,它应该保持即使用户再次取消授权并授权您的应用程序也是一样的。它在一个应用程序中总是相同的,但在另一个应用程序中它将是不同的。如果要匹配不同应用程序之间的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

如果收件人接受邀请,您只能奖励发件人, 没有其他的。请参阅平台政策: 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,而是邀请令牌:< a href =https://developers.facebook.com/docs/graph-api/reference/v2.1/user/invitable_friends =nofollow noreferrer> 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

编辑:如果用户取消授权应用程序并再次授权,则作用域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屋!

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