简体   繁体   中英

how to open facebook external application in ionic app

I am making an ionic app and in this app menu I have created an option of about us and in this option, I want to open facebook external app I am new in ionic any know how to open facebook external app with facebook page URL so please tell me. Thanks in advance please help me

First you need to install a plugin to open external URLs .

As described in the wiki , there are several ways to launch the InAppBrowser and all perform differently.

For your case should be:

<a href="#" onclick="window.open('https://apps.facebook.com/app_name', '_system', 'location=yes'); return false;">Open Facebook App</a>

This will redirect you facebook from your ionic app:

 $scope.open=function(){
        window.location.href ="https://www.facebook.com";
      }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM