How to open Facebook / Twitter app from my iOS app in Xamarin?


I’m developing an iOS app with Xamarin, in C#.

I have a “contact” UIViewController, with some buttons, including Facebook and Twitter.

I need to open the Facebook and Twitter App with a specific Facebook Page and Twitter profile from my app.

What is the best way to do this?

Source: Xamarin.ios Questions

Categorised as Uncategorised Tagged , , , ,


In addition to accepted answer,
following are my finding to open links in external applications.

To open link in browser:

Device.OpenUri(new Uri(““));

To open group in facebook:

Device.OpenUri(new Uri(“fb://group/groupname”));

To open page in facebook:

Device.OpenUri(new Uri(“fb://page/page_id”));

To open user in instagram:

Device.OpenUri(new Uri(“instagram://user?username=yourUserName”));

To open user in twitter:

Device.OpenUri(new Uri(“twitter://userName?user_id=userId”));

To open mail app:

Device.OpenUri(new Uri(“mailto:[email protected]”));

Sunny Fisher

Leave a Reply

Your email address will not be published. Required fields are marked *

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us