我可以在我的应用程序中使用 graph-api 获取应用程序范围的用户 ID。
然后,如何在 android 中使用应用程序范围的 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 聊天窗口。我不需要发送私人消息,只需打开即可。
感谢您的阅读!
这不可能。
开发人员与 Facebook Messenger 交互的唯一方法是...
- 构建一个页面管理应用程序,可以回复消息 https://developers.facebook.com/docs/graph-api/reference/v2.5/page/conversations个人已发送到某个页面,或者...
- build a 信使平台 https://developers.facebook.com/docs/messenger app.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)