7

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

谢谢,瑞安

4

1 回答 1

11
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)

然后像这样调用:

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

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

于 2012-06-22T01:59:11.143 回答