连接 facebook 以获取用户个人资料 link (2020)
Connecting with facebook to get user profile link (2020)
在网站中,是否可以要求用户 "connect to facebook" 并授予网站访问个人资料 link - 或可以转化为个人资料的其他一些数据 link?
如果是,我应该API/method看什么?
个人资料 link 我的意思是 http://facebook.com/{myprofile}
link 到此人的 Facebook 页面。
我看到很多关于此的帖子,但它们已经过时且过时了,在过去的几年中,您可以使用 Facebook 做什么和不能做什么已经发生了很大变化。
无法再获取 "real" 配置文件 link(包括用户名)。你可以用API得到一个link,但它可能不是你想要的:
https://developers.facebook.com/docs/graph-api/reference/user/
/me?fields=link
A link to the person's Timeline. The link will only resolve if the person clicking the link is logged into Facebook and is a friend of the person whose profile is being viewed.
编辑:哦,我之前回答过这个问题:
在网站中,是否可以要求用户 "connect to facebook" 并授予网站访问个人资料 link - 或可以转化为个人资料的其他一些数据 link?
如果是,我应该API/method看什么?
个人资料 link 我的意思是 http://facebook.com/{myprofile}
link 到此人的 Facebook 页面。
我看到很多关于此的帖子,但它们已经过时且过时了,在过去的几年中,您可以使用 Facebook 做什么和不能做什么已经发生了很大变化。
无法再获取 "real" 配置文件 link(包括用户名)。你可以用API得到一个link,但它可能不是你想要的:
https://developers.facebook.com/docs/graph-api/reference/user/
/me?fields=link
A link to the person's Timeline. The link will only resolve if the person clicking the link is logged into Facebook and is a friend of the person whose profile is being viewed.
编辑:哦,我之前回答过这个问题: