How to open facebook messenger chat window using app-scoped id in android

◇◆丶佛笑我妖孽 提交于 2019-12-09 06:58:39

问题


I can get a app-scoped user id with graph-api in my application. Then, how to open facebook messenger chat window using app-scoped id in android.

We can open facebook messenger chat window using global-facebook-id(using intent and uri).

Uri uri = Uri.parse("fb-messenger://user/");
uri = ContentUris.withAppendedId(uri, Long.parseLong(peopleId));
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

But, it is not possible to get global-facebook-id using app-scoped-id.

Then, I want to know how to open facebook messenger chat window using app-scoped-id only. I don't need to send a private message just opening is all I need.

Thank you for your reading!


回答1:


This is not possible. The only way developers can interface with Facebook Messenger is to...

  • build a page management app that can respond to messages that individual people have sent to a page, or...
  • build a messenger platform app.


来源:https://stackoverflow.com/questions/33468335/how-to-open-facebook-messenger-chat-window-using-app-scoped-id-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!