如何在 android 中使用应用范围内的 ID 打开 Facebook Messenger 聊天 window
How to open facebook messenger chat window using app-scoped id in android
我可以在我的应用程序中使用 graph-api 获取应用范围的用户 ID。
然后,如何使用 android.
中的应用范围 ID 打开 facebook Messenger 聊天 window
我们可以使用 global-facebook-id(使用 intent 和 uri)打开 facebook messenger 聊天 window。
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 聊天 window。不用私信,点开即可
感谢您的阅读!
这是不可能的。
开发人员可以与 Facebook Messenger 交互的唯一方法是...
- 构建一个页面管理应用程序,可以 respond to messages 个人发送到页面的信息,或者...
- 构建 messenger platform 应用程序。
我可以在我的应用程序中使用 graph-api 获取应用范围的用户 ID。 然后,如何使用 android.
中的应用范围 ID 打开 facebook Messenger 聊天 window我们可以使用 global-facebook-id(使用 intent 和 uri)打开 facebook messenger 聊天 window。
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 聊天 window。不用私信,点开即可
感谢您的阅读!
这是不可能的。 开发人员可以与 Facebook Messenger 交互的唯一方法是...
- 构建一个页面管理应用程序,可以 respond to messages 个人发送到页面的信息,或者...
- 构建 messenger platform 应用程序。