【发布时间】:2015-11-01 23:15:23
【问题描述】:
我可以在我的应用程序中使用 graph-api 获取应用范围内的用户 ID。 然后,如何在 android 中使用 app-scoped id 打开 facebook messenger 聊天窗口。
我们可以使用 global-facebook-id(使用意图和 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 聊天窗口。我不需要发私信,只需打开即可。
感谢您的阅读!
【问题讨论】:
标签: android facebook facebook-graph-api messenger