是否可以深入链接到iOS上的Facebook移动应用程序中的特定页面或位置?

rrh*_*ver 7 facebook ios

是否可以在我的移动应用程序中包含一个链接,该链接可以将本机Facebook应用程序打开到特定页面,事件,帖子或其他位置?

谢谢,瑞恩

dan*_*ard 10

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
Run Code Online (Sandbox Code Playgroud)

例如

 fb://post/(postId)
Run Code Online (Sandbox Code Playgroud)

然后像这样打电话:

NSURL *url = [NSURL URLWithString:@"fb://<insert function here>"];
[[UIApplication sharedApplication] openURL:url];
Run Code Online (Sandbox Code Playgroud)

来自LOTS的更多例子:http://wiki.akosma.com/IPhone_URL_Schemes#Facebook