https://github.com/lucaslarroche/facebook-deep-linking
Redirect Facebook web links to Facebook App on iOS and Android
https://github.com/lucaslarroche/facebook-deep-linking
deep-linking deep-links facebook url-scheme
Last synced: 11 months ago
JSON representation
Redirect Facebook web links to Facebook App on iOS and Android
- Host: GitHub
- URL: https://github.com/lucaslarroche/facebook-deep-linking
- Owner: lucaslarroche
- License: mit
- Created: 2019-09-17T03:26:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T03:01:54.000Z (over 6 years ago)
- Last Synced: 2025-04-11T20:13:02.474Z (about 1 year ago)
- Topics: deep-linking, deep-links, facebook, url-scheme
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Facebook deep linker
Lightweight JavaScript module to **redirect Facebook web links to Facebook App on iOS and Android**, as it should be! Work for Pages, Groups and Profiles links.
## Why?
Unlike links to Facebook Messenger, Facebook links to Pages, Groups and Profiles are not deep linked to Facebook App on mobile devices 😡.
## Usage
Work without package manager or dependencies 🙂!
### Link the JavaScript:
```html
```
### Add the Facebook ID to your Facebook links:
```html
My Facebook Link
```
You can find your Facebook ID here: [Facebook Profile ID](https://www.facebook.com/help/1397933243846983), [Facebook Page ID](https://www.facebook.com/help/1503421039731588), or on this [third party website](https://findmyfbid.com/).
### Examples:
```html
GitHub Facebook Page
Facebook Developer Group
Mark Zuckerberg Profile
```
This links should open inside Facebook App on iOS and Android.
## Disclaimer
Apps URL scheme (deep links) changes regularly. It is possible that this JavaScript module no longer work on iOS or Android in a few months.
## Support
Tested and working for Pages, Groups and Profiles in:
- Chrome 76 for Android, iOS and macOS
- Safari 12 for macOS and iOS 12