Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to force a link to open in Chrome from Facebook's in-app browser?

I've got a web app that requires the ability to print. Facebook's in-app implementation of Chrome doesn't allow printing. Currently, I'm giving the user instructions on how to open in chrome themselves in place of the print button I give normal users. But I'd prefer to just open Chrome for them when they get to that page, or at the very least provide a button/link that would open the page in Chrome instead of forcing them to find the settings button and figure out how to open Chrome themselves.

I've tried using the googlechrome://myurl.com approach, and Chrome opens, but the specified url doesn't load.

I've looked into Google's Intent option but I wasn't able to figure out how to open Chrome with that method.

Is there a way to accomplish this in javascript? or by some url scheme in an href attribute?

So far, all the other answers I've found give explanations for how to do this from an Android App, but not from a website.

** Update: The googlechrome://myurl.com seems to work fine from iOS in the native facebook app. It does not appear to work correctly using the native facebook app in Android.

like image 207
codescribblr Avatar asked Feb 19 '18 14:02

codescribblr


People also ask

How do you force the Facebook app to open links in your device's default web browser?

Change the Default Facebook BrowserIn the Facebook app, tap the three-line menu icon at the top right corner, then scroll down to Settings & Privacy -> Settings. Scroll down to Media. At the very bottom, you should see “Links open externally”. Check this box to enable it.


1 Answers

Try

googlechrome://navigate?url=example.com

for Android users.

Reference from https://stackoverflow.com/a/12013755/9514189

like image 88
kengshen Avatar answered Sep 22 '22 18:09

kengshen