简体   繁体   English

Facebook Graph API获取对我的应用进行授权的那些用户的所有授权朋友

[英]Facebook Graph API Get All Authorized Friends of those Users who authorized my app

I have a facebook app and made it public that is used by my .net web application, so there are users who login to my web application via facebook app through JS SDK. 我有一个Facebook应用程序,并将其公开发布,供我的.net Web应用程序使用,因此有些用户通过JS SDK通过facebook应用程序登录到我的Web应用程序。

In APP authorization for my web app i have explicitly asked permission of friends with public profile. 在我的Web应用程序的APP授权中,我已明确请求具有公开资料的朋友的许可。

I want to create a console application that gets friends of the authorized users and i know app will only provide those friends that have also authorized the app. 我想创建一个控制台应用程序,以获取授权用户的朋友,并且我知道该应用程序将仅提供那些也已授权该应用程序的朋友。

So from my console app when i try to get friends of a user with facebookId that has authorized my app but is not friend of Web APP Creator the result is empty. 因此,从控制台应用程序中,当我尝试与已授权我的应用程序但不是Web APP Creator的facebookId的用户取得朋友时,结果为空。

Is there any way to get required info? 有什么办法获取必填信息吗?

So i figure what i was doing wrong, I needed to store the useraccesstoken for users who are using my app and from there i can get information about them if they are offline and app can control the Life of access token short or long lived. 因此,我想出我做错了什么,我需要为使用我的应用程序的用户存储useraccesstoken,如果他们离线,我可以从那里获取有关他们的信息,并且应用程序可以控制访问令牌的生存期或短暂时间。

Thanks for responding though. 感谢您的回应。

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

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