how to force links or pages to open outside of facebook inapp browser?
This is not something you can (reliably) detect.
Even if you could, I'm pretty sure there's no way to force the site to open in the device's browser, instead of the in-app browser
How to prevent Facebook in app browser from opening my website links?
It is completely up to the user, there is no way to force opening it in the default browser instead. There is more information (and some answers) in this thread: File upload control not working in Facebook In-App Browser
Is there any way to force a link to open in Chrome from Facebook's in-app browser?
Try
googlechrome://navigate?url=example.com
for Android users.
Reference from https://stackoverflow.com/a/12013755/9514189
Open Facebook page from Android app?
In Facebook version 11.0.0.11.23 (3002850) fb://profile/
and fb://page/
no longer work. I decompiled the Facebook app and found that you can use fb://facewebmodal/f?href=[YOUR_FACEBOOK_PAGE]
. Here is the method I have been using in production:
/**
* <p>Intent to open the official Facebook app. If the Facebook app is not installed then the
* default web browser will be used.</p>
*
* <p>Example usage:</p>
*
* {@code newFacebookIntent(ctx.getPackageManager(), "https://www.facebook.com/JRummyApps");}
*
* @param pm
* The {@link PackageManager}. You can find this class through {@link
* Context#getPackageManager()}.
* @param url
* The full URL to the Facebook page or profile.
* @return An intent that will open the Facebook page/profile.
*/
public static Intent newFacebookIntent(PackageManager pm, String url) {
Uri uri = Uri.parse(url);
try {
ApplicationInfo applicationInfo = pm.getApplicationInfo("com.facebook.katana", 0);
if (applicationInfo.enabled) {
// http://stackoverflow.com/a/24547437/1048340
uri = Uri.parse("fb://facewebmodal/f?href=" + url);
}
} catch (PackageManager.NameNotFoundException ignored) {
}
return new Intent(Intent.ACTION_VIEW, uri);
}
Related Topics
Angular2: Show Placeholder Image If Img Src Is Not Valid
Can We Cast a Generic Object to a Custom Object Type in JavaScript
Call External JavaScript Function from React Typescript Components
Hide Page Until Everything Is Loaded Advanced
How to Get Dynamically Generated Table Td Input Value
How Insert JavaScript into Vue File
Laravel - How to Pass a PHP Variable to a JavaScript Function from a Blade File
How to Validate This Select Option If Not Selected
How to Remove the X-Axis from a Bar Chart Produced by Google'S Visualization API
Filter Json Object to String Array by Key Value
Open a New Tab on Button Click in Angularjs
Detecting When User Scrolls to Bottom of Div With React Js
Reactjs: Uncaught Referenceerror: Require Is Not Defined
Pdf Blob - Pop Up Window Not Showing Content
Filter Input Text to Enter Only Number and Not Even Decimal
How to Disable Eslint Rule Max Line Length for Paragraph in <Template> of Vue.Js