我可以在我的应用程序中使用 graph-api 获取应用范围内的用户 ID。 然后,如何在android中使用app-scoped id打开facebook messenger聊天窗口。
我们可以使用 global-facebook-id(使用 intent 和 uri)打开 facebook messenger 聊天窗口。
Uri uri = Uri.parse("fb-messenger://user/");
uri = ContentUris.withAppendedId(uri, Long.parseLong(peopleId));
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
但是,无法使用 app-scoped-id 获取 global-facebook-id。
然后,我想知道如何仅使用 app-scoped-id 打开 facebook messenger 聊天窗口。我不需要发送私有(private)消息,只需打开即可。
感谢您的阅读!
最佳答案
这是不可能的。 开发人员可以与 Facebook Messenger 交互的唯一方法是...
- 构建一个可以 respond to messages 的页面管理应用程序个人已发送到页面,或...
- 建立一个messenger platform应用程序。
关于android - 如何在 android 中使用应用范围的 id 打开 facebook messenger 聊天窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33468335/