更新时间:2022-12-21 21:14:29
FB://消息/ {#user_id}
您可以使用此URI与已知ID的朋友开的消息。
您可以开始像下面的意图
startActivity(新意图(android.action.VIEW,FB://消息/ {#user_id}));
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
fb://messaging/{#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, "fb://messaging/{#user_id}"));