I am struggling with one thing. Below is the scenario:

I have a website which has a feature to share a link with facebook.
What I want is if someone has the facebook app installed in the iPhone and clicks on the link, it should open it in the app to which that link belongs, if that app is installed.

Could you help me? How can I achieve this ?