Open facebook/twitter app from my Android app

Hello,
In my app, I’m trying to open a link to facebook and twitter, but from those native app’s and not from my own app in “facebook/twitter web mobile version”.

I allready try

<ion-item nav-clear menu-close href="fb://www.facebook.com/lalalalalalalala">   
        <i class="icon ion-social-facebook">    </i>
        <span">Facebook</span>
</ion-item>

OR

<a href="#" onClick="window.open('https://facebook.com/lalalalalal','_blank','location=yes')"> TEST</a>

How can i resolve this?
Thank you!

Are the required permissions set in your config.xml? Check with http://cordova.apache.org/docs/en/2.9.0/cordova_inappbrowser_inappbrowser.md.html for the required settings.

Hello @iwantwin,
Thank you for your help!
I already got it to work otherwise with these

Facebook:

<ion-item nav-clear menu-close >
     <a href="fb://facebook.com/lalalalaal">
                    <i class="icon ion-social-facebook">    </i>
                        <span>Facebook</span>
                    </a>
                </ion-item>

Twitter:

   <ion-item nav-clear menu-close >
        <a href="twitter://twitter.com/lalalalala">
        <i class="icon ion-social-twitter"></i>
        Twitter
        </a>
    </ion-item>

But i’m with a problem at the twitter link is no problem at all, opens with the app at the right place with no problem, but in the case of facebook is strange, it opens the app but always at the “normal” feed and not at the page i indicate to open…

Do you know what am i doing wrong?
Thanks!!

Take a look at http://wiki.akosma.com/IPhone_URL_Schemes#Facebook :slight_smile: Couldn’t find equivalent scheme for android (didn’t search for more then 2 minutes though) but I imagine it should be similair or even te same :wink:

I’m having the same issue, can’t seem to find the URL scheme to open the twitter/Facebook app from an Android.

For iOS it works fine but it seems to be not as straightforward on Android. This is what I have:

data.app.facebook_url_scheme = {
            ios : 'fb://profile/ID',
            android: 'fb://facewebmodal/f?href=https://www.facebook.com/PAGE_NAME',
            web : 'https://www.facebook.com/PAGE_NAME'
        }

I’ve been googling but there seem to be different links for different android/App version