[英]Can I use the Facebook iOS SDK to open a user's Facebook profile?
I have an app where users have their own profiles in my app.我有一个应用程序,用户在我的应用程序中有自己的个人资料。 When user A opens user B's profile in my app, I want there to be a button user A can click that will open up the Facebook app to user B's Facebook profile.
当用户 A 在我的应用程序中打开用户 B 的个人资料时,我希望用户 A 可以点击一个按钮,该按钮将向用户 B 的 Facebook 个人资料打开 Facebook 应用程序。 Can I do that with the Facebook iOS SDK?
我可以使用 Facebook iOS SDK 做到这一点吗?
You should look into using custom url schemes.您应该考虑使用自定义 url 方案。 Facebooks custom url scheme is
fb://
Facebook 的自定义 url 方案是
fb://
If you have the users facebook id or username you can pop out to the facebook app using something like fb://profile/zuck
如果您有用户 facebook id 或用户名,您可以使用
fb://profile/zuck
类的东西弹出到 facebook 应用程序
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.