Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to start android facebook app chat from another app

I've seen other topics like this: launch facebook app from other app and tried some of the URIs listed there, but I can't figure out how to start the facebook chat with a specific friend.

Is there an official page that describes the IntentUriHandler and all the allowed URIs with their params?

Thanks, Lorenzo

like image 989
Lorenzo S Avatar asked Dec 13 '22 06:12

Lorenzo S


1 Answers

found it here: https://developers.facebook.com/docs/messenger-platform/discovery/m-me-links#format

http://m.me/{#user_id}

you can use this URI to open messaging with a friend with known id.

You can start the intent like below

startActivity(new Intent(android.action.VIEW, "http://m.me/{#user_id}"));
like image 61
tasomaniac Avatar answered Jan 12 '23 09:01

tasomaniac