简体   繁体   English

Facebook Unity SDK v6.2.2无法检索信息

[英]Facebook Unity SDK v6.2.2 not retrieving info

Using 运用

  • Unity 4.6.8 patch 2 Unity 4.6.8补丁2
  • Facebook Unity SDK v6.2.2 Facebook Unity SDK v6.2.2

Problem 问题

Facebook's Unity SDK is not retrieving the info correctly. Facebook的Unity SDK无法正确检索信息。

I have the code below, 我有下面的代码,

FB.Login("email,publish_actions,user_friends”,Callback);
FB.API ("me?fields=id,name,friends.limit(100).fields(first_name,id)", 
Facebook.HttpMethod.GET, (_result)=>{});

And with it, I get the number of friends in the summary, but not the name and ID. 有了它,我得到的是摘要中的朋友数量,但没有名称和ID。 Is this because the Unity SDK ver 6.2.2 is not using GraphAPI ver2.4? 这是因为Unity SDK 6.2.2版未使用GraphAPI ver2.4吗? How can I retrieve the friends name and ID? 如何获取朋友的姓名和ID?

Thanks 谢谢

You can only get those friends which are also using your app (since Graph API 2.0!), so if none of your friends are actually using your app, then the result is perfectly fine. 您只能得到那些也在使用您的应用程序的朋友(因为Graph API 2.0!),因此,如果您的朋友中没有一个人实际上在使用您的应用程序,那么结果就很好。

See 看到

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

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