是否可以深入链接到iOS上的Facebook手机应用中的特定页面或位置? [英] Is it possible to deep link to a specific page or location in the Facebook mobile app on iOS?

查看:582
本文介绍了是否可以深入链接到iOS上的Facebook手机应用中的特定页面或位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在我的手机应用程序中添加一个链接,将链接打开到特定页面,事件,帖子或其他位置的本机Facebook应用程序。

Is it possible to include a link inside my mobile app that opens the native Facebook app to a specific page, event, post, or other location?

谢谢,
Ryan

Thanks, Ryan

推荐答案

fb://profile – Open Facebook app to the user’s profile
fb://friends – Open Facebook app to the friends list
fb://notifications – Open Facebook app to the notifications list (NOTE: there appears to be a bug with this URL. The Notifications page opens. However, it’s not possible to navigate to anywhere else in the Facebook app)
fb://feed – Open Facebook app to the News Feed
fb://events – Open Facebook app to the Events page
fb://requests – Open Facebook app to the Requests list
fb://notes- Open Facebook app to the Notes page
fb://albums – - Open Facebook app to Photo Albums list

例如

 fb://post/(postId)

Th en这样调用:

Then call like this:

NSURL *url = [NSURL URLWithString:@"fb://<insert function here>"];
[[UIApplication sharedApplication] openURL:url];

来源与LOTS更多示例: http://wiki.akosma.com/IPhone_URL_Schemes#Facebook

Source with LOTS more examples: http://wiki.akosma.com/IPhone_URL_Schemes#Facebook

这篇关于是否可以深入链接到iOS上的Facebook手机应用中的特定页面或位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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