将 Facebook 好友导入不同的社交网络:如何知道哪些好友是哪些?
使用 Facebook 的 api 检索好友列表非常简单。
但是,网站如何确定其哪些成员与其导入的 Facebook 好友相对应呢?
有没有可以使用的唯一ID?例如,Facebook 是否会提供朋友的电子邮件地址,以便可以比较具有相同电子邮件地址的人是否是该社交网络的成员?
如果没有,您将如何解决这个问题?
It is straightforward to retrieve a list of friends from Facebook using their api.
But how would a site figure out which of its members corresponds to the Facebook friend it has imported?
Is there a unique id that could be used? For example, does Facebook give the email address of the friend, so that could be compared to see if a person with the same email address is a member of the social network?
If not, how would you address this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Facebook 不会直接公开电子邮件地址,因为它需要确保在用户删除您的应用程序后您无法再联系他们。但是,他们使用电子邮件地址的哈希值来识别哪些现有成员对应于 Facebook 用户。
首先,您需要使用 Connect.registerUsers 告诉 Facebook 您的会员信息,然后您可以使用一些 FQL 检索用户朋友的电子邮件哈希值...
Facebook doesn't expose the email address directly, since it needs to be sure that you can no longer contact a user after they remove your application. However, they use a hash of the email address to identify which of your existing members correspond to Facebook users.
First you need to tell Facebook about your members using Connect.registerUsers, then you can retrieve the email hashes of user's friends with a bit of FQL...