ios Facebook自定义url方案打开用户配置文件 [英] ios Facebook custom url scheme to open user profile

查看:530
本文介绍了ios Facebook自定义url方案打开用户配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

openURL:[NSURL URLWithString:@fb://profile/user.x]];

  [UIApplication sharedApplication] 

fb://个人资料/ [您的ID] 和Facebook应用程序将打开您的页面。



fb:// profile /(fbid) / p>

我按照上面的步骤在iOS 8中打开Facebook本机应用程序,但不起作用,有没有办法?



我的意思是twitter工程完美的Facebook没有更新他们的API的错误!



谢谢

解决方案

正如明李在评论中指出的那样,并没有得到正式的支持。您无法通过Facebook应用程序深入到用户个人资料。


    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"fb://profile/user.x"]];

fb://profile/[your ID] and the facebook app will open to your page.

fb://profile/(fbid)

I followed the steps above to open Facebook native app in iOS 8 but it does not work, is there a way to do this?

I mean twitter works perfect whats wrong with Facebook not updating their API!.

Thanks

解决方案

As Ming Li pointed out in his comment, this is not officially supported. You can't deeplink to a user profile in the Facebook app.

这篇关于ios Facebook自定义url方案打开用户配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆