我看过其他类似的主题:launch facebook app from other app并尝试了那里列出的一些 URI,但我不知道如何开始与特定 friend 的 Facebook 聊天。
是否有描述 IntentUriHandler 和所有允许的 URI 及其参数的官方页面?
谢谢, 洛伦佐
最佳答案
在这里找到它:https://developers.facebook.com/docs/messenger-platform/discovery/m-me-links#format
http://m.me/{#user_id}
您可以使用此 URI 打开与已知 ID 的 friend 的消息传递。
您可以像下面这样启动 Intent
startActivity(new Intent(android.action.VIEW, "http://m.me/{#user_id}"));
关于android - 如何从另一个应用程序开始 android facebook 应用程序聊天,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8971731/