Ionic, open Facebook and Twitter pages with the Facebook and Twitter apps

Hi

I would like users, if they have Facebook or Twitter native apps on their device, to open Facebook or Twitter URLs from the native app rather than through the InAppBrowser inside my app. It means they don’t have to log in etc.

I can detect if they have the apps installed. Should I then open the native apps in an InAppBrowser instance?

Now I just need the right syntax, and possibly whitelisting with the cordova whitelisting plugin, to get them to open the page within the Facebook and Twitter apps.

Has anyone done this with Ionic 2?

Thanks

Tom

1 Like

how can you open external app ? like facebook

Try this :

window.open(‘fb://profile’, ‘_system’, ‘location=no’);

1 Like

it’s work for me …thank you