Anyway, to open facebook url in facebook app on phone?

Possible duplicate:
launch facebook application from another application

I was wondering if there is a way to place a facebook link on a web page, and if the facebook application is installed, to open the facebook link in the fb application instead of broswer?

+4
source share
3 answers

The link to the facebook application starts with fb: // (according to this site ) for the iPhone. Therefore, theoretically, clicking on the link starting with fb: // will launch the facebook application.

The problem is that the web browser application (Safari or some custom application) decides how to handle this link, and will not necessarily try to open another application if it is not programmed for this. If you plan to place this on a web page, for example, and go to it from your iPhone, there is no guarantee that it will work. It is better not to rely on two links.

Not sure if the same is true for Android.

+7
source

If you display a web page in a web view, you can intercept the communication procedure on your deletion. When a link is clicked, a message is sent to the delegate to check whether the request should be executed. If you find that this is a facebook link, you can change it to use the fb scheme and open it with UIApplication openURL :. To check if there is an application that can handle the fb: link, you can call canOpenURL :, as well as UIApplication.

+2
source

Facebook applications for handheld devices are not standard. They mostly use the API, and I don’t think any application will provide you with a way to open the URL.

-3
source

All Articles