Skip to content

juunini/detect-facebook-in-app-browser

Repository files navigation

Detect Facebook in-app browser

Go To NPM Go To yarnpkg

TypeScript

codecov

Languages

한국어 | English


Introduce

Facebook in-app browsers experience a lot of inconvenience because they cannot be linked to existing browsers. In particular, some functions such as WebRTC cannot be used, so the user can have a bad experience, so check in advance. I created this library to encourage users to leave Facebook and turn on their browsers to enter.

Install

npm i detect-facebook-in-app-browser # npm

yarn add detect-facebook-in-app-browser # yarn

Usage

import isFacebookInAppBrowser from 'detect-facebook-in-app-browser';

if (isFacebookInAppBrowser()) {
  // do something...
}