Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom URL to launch Facebook Messenger on iOS

How can I launch FaceBook Messenger (if installed) with a compose Windows to a specific FB ID.

If messenger is not installed, can we launch FaceBook app and have the compose Windows open to a specific FB ID.

In the rare instance if no Facebook apps are installed, can we launch mobile Safari with the compose window?

like image 323
software is fun Avatar asked Nov 18 '13 22:11

software is fun


People also ask

How do I change the opening link on Facebook Messenger?

Messenger appInside Messenger, tap on your profile picture in the top left. Scroll down to Photos & Media and enter that sub-menu. The toggle for "Open Links in Default Browser" should be set to on. And there you go — Android users get the quick and easy solution to this issue.

How do I get Messenger link on IOS?

Open Messenger and tap your profile picture in the top left corner of the screen. Scroll down to find your username link. Tap your username link and then tap Share Link from the list of options that appears. Select how you want to share your username link (text, email, etc.)

How do I get my Messenger URL?

it provides the option to message your page in their browser or in the Messenger app. Options to message your page in the browser or Messenger app. To find your personal Messenger URL, go to the Settings tab in the Messenger app. Where to find your personal profile's messaging link.


2 Answers

The URL scheme is fb-messenger://user-thread/{user-id}. I just build my app with fb-messenger URL scheme as Viewer and trapped the URL on the UIApplication delegate. The user-id parameter is long integer one, as in https://developers.facebook.com/docs/graph-api/reference/user/

enter image description here

like image 139
tia Avatar answered Sep 23 '22 06:09

tia


Just use https://m.me/USER_ID.

This will deep link the user to the native Messenger app if available and start a conversation with the user identified by its USER_ID.

If the native app is not available on the device, it will open the messenger web app in a new browser.

like image 40
olivierlesnicki Avatar answered Sep 22 '22 06:09

olivierlesnicki