简体   繁体   English

使用Facebook Graph API(C#.net)无法获取所有用户的个人资料信息

[英]Unable to get all user's profile info, using Facebook Graph API (C# .net)

At present i have created an api_key ,api_secret key and generated an access token after creating an facebook app.i have used these access token 目前我创建了一个api_key,api_secret密钥并在创建一个Facebook应用后生成了一个访问令牌。我已经使用了这些访问令牌

https://graph.facebook.com/search?q=" + txtSearch.Text.Trim() + "&type=user&access_token=" + tokenFB

in my code to fetch data.... The problem i'm facing is I'm not able to view public data of strangers my code fetches all data of my friends but not others in facebook except their name and profile picture . 在我的代码中获取数据。...我面临的问题是我无法查看陌生人的公共数据,我的代码无法获取我朋友的所有数据,但无法获取facebook中其他人的所有数据,除了他们的姓名和个人资料图片。 i want to get data of all facebook users that are have public access.. can sum1 help with what should be my approach? 我想获取所有具有公共访问权限的Facebook用户的数据。sum1可以帮助我解决什么问题吗? Is there no way of a access token that help me fetch data of all users and not just my friends. 是否有访问令牌无法帮助我获取所有用户的数据,而不仅仅是我的朋友。

All of this depends on the permissions level that the user sets on their profile. 所有这些取决于用户在其个人资料上设置的权限级别。 In short you will need to adapt to different settings and hence different information for each user. 简而言之,您将需要适应不同的设置,从而为每个用户适应不同的信息。

You can however request more permissions from Facebook for such a purpose. 但是,您可以为此目的从Facebook请求更多权限。

Refer to Facebook's documentation here . 请参阅此处的 Facebook文档。

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

相关问题 无法使用asp.net C#编码从facebook api v2.4获取用户电子邮件 - unable to get user email from facebook api v2.4 using asp.net c# coding 如何从 facebook 获取用户的朋友,并使用 C# Facebook ZF203675AZ5E5043F8AB66 向他们发送所有消息 - How to get user's friends, from facebook, and send them all messages, by using C# Facebook SDK? Facebook图形API无法获取用户公开个人资料 - Facebook graph api can't get user public profile 如何在c#中从Google API获取个人资料信息 - How to get Profile Info from the Google API in c# Facebook Graph API/SDK .NET - 获取 Facebook 用户的 PageID - Facebook Graph API/SDK .NET - Get PageID of a Facebook user "在 c# 中使用 Microsoft Graph API 获取所有电子邮件" - Get all email message using Microsoft Graph API in c# 如何在C#中从Facebook图形API获取Facebook朋友 - How to get facebook friends from facebook graph api in c# C#和iOS连接到Facebook并获取用户的个人资料信息 - c# and ios connect to facebook and get the profile information of the user 如何获取Facebook个人资料图片C#.Net - How to get Facebook profile Picture C# .Net 使用图API通过用户ID从Facebook获取用户的创建事件 - get user's create events from facebook by user id using graph api
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM