从其他应用程序打开的Facebook应用程序应用程序、Facebook

由网友(故人还未归)分享简介:有没有办法从我自己的应用程序中打开Facebook应用程序?Is there a way to open the Facebook app from my own application?例如,我使用Facebook的-API来发布一些对登录用户的墙。当我接到一个电话回来,后已成功添加我想打开Facebook的应用...

有没有办法从我自己的应用程序中打开Facebook应用程序?

Is there a way to open the Facebook app from my own application?

例如,我使用Facebook的-API来发布一些对登录用户的墙。当我接到一个电话回来,后已成功添加我想打开Facebook的应用程序(如应用程序安装在设备上)的用户墙上,向他们展示他们的岗位是存在的。

For example, I'm using the Facebook-api to post something on the logged in users wall. When I get a call back that the post was successfully added I would like to open the Facebook app (if application is installed on the device) on the users wall to show them their post is there.

答案为iPhone或Android或两者将是非常美联社preciated。

Answers for iPhone or Android or both would be much appreciated.

推荐答案

对于iPhone,你可以,如果安装使用开始的URL FB推出的Facebook应用程序C>

For the iphone, you can launch the Facebook app if installed by using a url starting with fb://

更多信息可以在这里找到: http://iphonedevtools.com/?p=302 也在这里:http://wiki.akosma.com/IPhone_URL_Schemes#Facebook

More information can be found here: http://iphonedevtools.com/?p=302 also here: http://wiki.akosma.com/IPhone_URL_Schemes#Facebook

偷走上面的网站:

FB://简介 - 打开Facebook的应用程序给用户的配置文件 FB://朋友 - 打开Facebook应用程序的好友列表 FB://通知 - 打开Facebook应用程序的通知列表(注:似乎有与此URL错误的通知页面打开但是,这是不可能的导航到任何地方。其他的Facebook应用程序) FB://喂 - 打开Facebook应用程序的新闻饲料 FB://事件 - 打开Facebook应用程序的活动页面 FB://请求 - 打开Facebook应用程序的请求列表 FB://注意 - 打开Facebook应用程序的注意事项页 FB://专辑 - 打开Facebook的应用程序,以相册列表 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

启动:

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