如何从另一个应用程序启动的Andr​​oid的Facebook应用程序聊天 [英] how to start android facebook app chat from another app

查看:124
本文介绍了如何从另一个应用程序启动的Andr​​oid的Facebook应用程序聊天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过的其他内容是这样的:从其他应用程序推出的Facebook应用程序,并尝试了一些列有这些URI,但我无法弄清楚如何启动Facebook的聊天与特定的朋友。

有描述IntentUriHandler和所有允许的URI与他们的PARAMS的官方网页?

谢谢,   洛伦佐

解决方案

  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}"));

这篇关于如何从另一个应用程序启动的Andr​​oid的Facebook应用程序聊天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆