android - 如何在 android 中使用应用范围的 id 打开 facebook messenger 聊天窗口

标签 android facebook facebook-graph-api messenger

我可以在我的应用程序中使用 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 交互的唯一方法是...

关于android - 如何在 android 中使用应用范围的 id 打开 facebook messenger 聊天窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33468335/

相关文章:

android - 在 Android 应用程序中从 http 转换为 https 后出现 SocketTimeoutException

SQLiteQueryBuilder.buildQuery 不使用 selectArgs?

javascript - 无法再从 FB 删除链接

javascript - 如何使用 Backbone.js 获得 HTML5 历史记录持久化?

android - 从 Android 使用 Web Api 2 时 Request.Path 异常

android - activity和fragment通信错误如何解决?

facebook - 错误代码 100(只能对您的应用程序的有效测试用户调用此方法)

javascript - Facebook:FB登录时黑屏

android - 是否可以本地化 Facebook 登录权限消息?

Facebook 图形 API : user gender