如何分享当前用户的 Facebook 个人资料 [英] How to share a current user’s facebook profile
问题描述
我正在构建一个 React Native 应用程序,我希望用户能够分享他们的 Facebook 个人资料.有没有办法,使用 facebook api 或 sdk,给另一个用户一个链接来查看其他人的 facebook 个人资料?
I’m building a react native app and I’d like the user to be able to share their facebook profile. Is there a way, using the facebook api or sdk, to give another user a link to view someone else’s facebook profile?
推荐答案
https://developers.facebook.com/docs/graph-api/reference/user/#fields:
链接
字符串
指向此人时间线的链接.只有当点击链接的人登录了 Facebook 并且是正在查看其个人资料的人的朋友时,该链接才会解析.
link
string
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.
您将需要 user_link
权限,https://developers.facebook.com/docs/permissions/reference/user_link
这篇关于如何分享当前用户的 Facebook 个人资料的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!