简体   繁体   English

是否可以在API v2下交叉引用FB taggable_friends和本地用户记录?

[英]Is it possible to cross reference FB taggable_friends and local user records under API v2?

I am using Koala in a Rails app to get a user's friends for a simple tagging interface. 我在Rails应用程序中使用Koala来获得用户的朋友,以使用简单的标记界面。

Some time back, Facebook changed the API (v2.0) such that this end point now returns a hashed ID, rather than the friend's FB ID. 一段时间以前,Facebook更改了API(v2.0),以便此端点现在返回哈希ID,而不是朋友的FB ID。 I've just started working with this endpoint for the first time since the change and am wondering, is it still possible to correlate an FB taggable_friends with a user of my app. 自更改以来,我才第一次开始使用此端点,并且想知道,是否仍然可以将FB taggable_friends与我的应用程序用户相关联。

For example, within my app a user creates an event she attended, and now wants to tag friends she was with. 例如,用户在我的应用程序中创建了一个她参加的活动,现在想标记与她在一起的朋友。 The taggable_friends API allows taggings to be pushed to FB, but how do I also represent that tagging within my app? taggable_friends API允许将标签推送到FB,但是我该如何在我的应用程序中表示该标签呢?

The taggable_friends endpoint returns basic details such as name and avatar, so I could just store and display those. taggable_friends端点返回基本详细信息,例如名称和头像,因此我可以存储并显示这些细节。 But if the friend is also a user of my app, and perhaps has a different avatar here, I'd like to display the details they have set in the app rather than FB details. 但是,如果朋友也是我的应用程序的用户,并且这里的头像可能不同,我想显示他们在应用程序中设置的详细信息,而不是FB详细信息。

Is there any way to cross reference taggable_friends with local user records under the new API? 有什么方法可以在新API下交叉引用taggable_friends与本地用户记录?

The tagging token is not valid forever, so you cannot cross-reference users. 标记令牌永远无效,因此您不能交叉引用用户。 It would only be possible by name, but that is not reliable since users can change their name or two users can have the exact same one. 这只能通过名称来实现,但这并不可靠,因为用户可以更改其名称,或者两个用户可以拥有完全相同的名称。

In other words: No, it is not possible. 换句话说:不,这是不可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM