简体   繁体   English

Facebook SDK Android获得使用相同应用程序的朋友

[英]Facebook sdk android get friends who use the same app

So, I tried to google it, but don't have a clue why this isn't working. 因此,我尝试在Google上进行搜索,但不知道为什么它不起作用。 When i call this api: 当我调用此api时:

在此处输入图片说明

I get this: 我得到这个:

{Response:  responseCode: 200, graphObject: {"data":[],"summary":{"total_count":683}}, error: null}

Now, I have 2 friends for testing purposes for this app that im doing and I need to get those friends. 现在,我有2个朋友正在为此应用程序进行测试,我需要这样做,我需要得到这些朋友。 What am I Doing wrong? 我究竟做错了什么?

The response looks good, the only issue I can think of is that your friends did not authorize your App with the user_friends permission. 响应看起来不错,我唯一想到的问题是您的朋友没有经过user_friends许可来授权您的应用程序。 Make sure they did. 确保他们做到了。

In other words: Use the scope parameter with the user_friends permission in the login process. 换句话说:在登录过程中,将scope参数与user_friends权限一起使用。

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

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