简体   繁体   English

Facebook Graph API:获取用户的个人资料网址?

[英]Facebook Graph API: Get user's profile url?

The Facebook Graph API lists a 'link' parameter in its documentation , which is the user's profile url. Facebook Graph API在其文档中列出了“链接”参数,即用户的个人资料网址。 Mine is http://www.facebook.com/adambossy . 我的是http://www.facebook.com/adambossy

This is not listed as one of the available Extended Permissions , so, presumably, it's available without asking. 这没有被列为可用的扩展权限之一 ,因此,大概无需询问即可使用。 I believe it's publicly available as Google results would reveal this. 我相信它是公开可用的,因为Google的结果将揭示这一点。

However, pinging the API with a proper access token using OAuth doesn't yield the link parameter in the return value. 但是,使用OAuth使用适当的访问令牌对API进行ping操作不会在返回值中产生link参数。 It works for some friend's accounts, but not all, and I don't see any privacy settings pertaining to this. 它适用于某些朋友的帐户,但不是全部,并且我看不到与此相关的任何隐私设置。

Why is the 'link' parameter not being returned? 为什么未返回“ link”参数?

More than likely it's your privacy settings. 很有可能是您的隐私设置。 The example on the graph API shows a bunch more information being returned: https://graph.facebook.com/arjun My profile data returned looks just like yours and I have my privacy settings all set to "Only Friends" or "None" if I can. 图API上的示例显示了返回的更多信息: https : //graph.facebook.com/arjun我返回的个人资料数据看起来像您的个人资料,并且我的隐私设置都设置为“仅好友”或“无”如果我能。

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

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