从 Android 应用向 Facebook 好友发送消息
Send a message to a Facebook friend from an Android app
我有一个实现了 Facebook 登录的应用程序。我可以使用图表 API.
检索登录用户的 Facebook 好友
核心问题是我需要能够与登录用户的朋友进行交流。这种交流可以以任何可能的方式发生:墙 post、收件箱消息或聊天消息。
- 似乎无法再张贴到墙上。根据 Removing ability to post to friends walls via Graph API:
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
提前安排)。 这可能吗?
对于这篇 post 的篇幅,我深表歉意,如果您仍然支持我,我感谢您的耐心等待。我不是那种想被填满的人,但我已经对这个问题束手无策,而且 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
我有一个实现了 Facebook 登录的应用程序。我可以使用图表 API.
检索登录用户的 Facebook 好友核心问题是我需要能够与登录用户的朋友进行交流。这种交流可以以任何可能的方式发生:墙 post、收件箱消息或聊天消息。
- 似乎无法再张贴到墙上。根据 Removing ability to post to friends walls via Graph API:
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
提前安排)。 这可能吗?
对于这篇 post 的篇幅,我深表歉意,如果您仍然支持我,我感谢您的耐心等待。我不是那种想被填满的人,但我已经对这个问题束手无策,而且 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