gpt4 book ai didi

android - 从 Android 应用向 Facebook 好友发送消息

转载 作者:行者123 更新时间:2023-11-29 00:12:24 25 4
gpt4 key购买 nike

我有一个应用程序,我在其中实现了 Facebook 登录。我能够使用 Graph API 检索登录用户的 Facebook 好友。

核心问题是我需要能够与登录用户的 friend 进行交流。这种交流可以以任何可能的方式进行:墙贴、收件箱消息或聊天消息。

We will remove the ability to post to a user's friends' walls via the Graph API. Specifically, posts against [user_id]/feed where [user_id] is different from the session user, or stream.publish calls where the target_id user is different from the session user, will fail.

  • 发送聊天消息已被弃用,很快就不可能了。根据Chat API文档:

On April 30, 2014, we announced the deprecation of the XMPP Chat API as part of the release of Platform API v2.0. The service and API this document covers will no longer be available after April 30, 2015.

Once version 1.0 is deprecated on April 30, 2015, chat.facebook.com and the xmpp_login permission will no longer be available.

We recommend developers who have integrated with the XMPP Chat API deprecate this functionality from their apps before April 30, 2015 to avoid broken experiences.

基本上,我需要向登录用户的 Facebook 好友发送消息,不需要用户交互(这并不意味着我会向用户的好友发送垃圾邮件,只是消息会被安排预先使用在 AlarmManager 中注册的 PendingIntent)。 这有可能吗?

对于这篇文章的篇幅,我深表歉意,如果您仍然支持我,我感谢您的耐心等待。我不是那种想被填满的人,但我已经对这个问题束手无策,而且 Facebook 文档也没有给我一个明确的答案。我需要一个决定性的答案或一个可用的解决方法来解决这个问题。

我已经提到了这些问题但没有成功:

1. Send private message to my friend(s) using my android application .

2. Android facebook send a message .

最佳答案

首先,从 4 月 30 日起,您将无法再获取所有用户的好友,因为 Graph API 的 1.0 版将被弃用,而 v2.0 将成为 API 的当前版本。可以找到更多关于版本控制的信息 here .

关于在 Android 上发送消息的实际问题,目前无法通过 Android SDK 实现

关于android - 从 Android 应用向 Facebook 好友发送消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29276666/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com