简体   繁体   English

我的ID和朋友的ID之间的Facebook API匹配

[英]Facebook API match between my id and a friend's id

I know my title seems vague, but that's the best I could do to describe my problem. 我知道我的头衔似乎模棱两可,但这是我描述问题的最佳方法。

I'm using Facebook Graph API for my multiplayer game. 我在多人游戏中使用Facebook Graph API。 When I connect, I get my own Facebook ID, but when I retrieve my friends, I get their encrypt ID. 连接时,我得到了自己的Facebook ID,但是当我检索到朋友时,却得到了他们的加密ID。

I would like to inform a player that his friend is online, but I have no matching key to compare to. 我想通知玩家他的朋友在线,但是我没有匹配的密钥可以比较。

How can I match between an encrypted friend ID and a user Facebook ID? 如何在加密的朋友ID和用户Facebook ID之间进行匹配?

I figured it out last night, forgot to answer myself... I can only get unencrypted ids using the /friends api, which return only friends who have the app. 我昨晚想通了,忘了回答自己...我只能使用/ friends api获得未加密的ID,该ID仅返回拥有该应用程序的朋友。 Fine by me :) 我没意见 :)

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

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