从Android应用发送消息给Facebook的朋友 [英] Send a message to a Facebook friend from an Android app

查看:130
本文介绍了从Android应用发送消息给Facebook的朋友的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,我已经实施了Facebook登录。我可以使用Graph API检索已登录的用户的Facebook好友。



中心问题是我需要能够与登录的用户的朋友。这种沟通可以以任何可能的方式发生:墙贴,收件箱消息或聊天消息。






我们将删除发布给用户的朋友的功能,墙壁通过
Graph API。具体来说,针对[user_id] / feed其中[user_id]
与会话用户不同的帖子,或
target_id用户与会话用户不同的stream.publish调用将失败。





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




2014年4月30日,我们宣布放弃XMPP Chat API
作为平台发布的一部分API v2.0。 2015年4月30日之后,这个
文件的服务和API将不再可用。



一旦版本1.0在2015年4月30日被淘汰,聊天。 facebook.com
和xmpp_login权限将不再可用。



我们建议与XMPP Chat API集成的开发人员
不推荐使用此功能从2015年4月30日之前的应用程序到
避免破坏的体验。


基本上,我需要发送一条消息给登录用户的Facebook朋友,而不需要用户交互(这并不意味着我将垃圾邮件用户的朋友,只是消息将提前使用 PendingIntent 注册到 AlarmManager )。 这是可以吗?



对于这篇文章的长度,我深表歉意,如果你还在我身边,我感谢你你的耐心。我不是那种想要吃勺子的人,但是我遇到了这个问题,而Facebook的文档并没有给我一个明确的答案。我需要一个决定性的答案或一个可用的解决方法来解决这个问题。



我没有成功地提到这些问题:



1。 使用我的Android应用程序向我的朋友发送私人消息



2。 Android facebook发送消息

解决方案

从4月30日起,您将无法再获取所有的用户朋友,因为Graph API的1.0版将被弃用, v2.0将成为当前版本的API。 这里的更多版本控制。



至于您在Android上发送邮件的实际问题,目前无法通过Android SDK进行。


I have an app in which I have implemented Facebook login. I am able to retrieve the logged-in user's Facebook friends using the Graph API.

The central problem is that I need to be able to communicate with the logged-in user's friends. This communication can occur in any possible way: wall post, inbox message or chat message.

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.

  • Sending chat messages has been deprecated and will soon be impossible. According to the Chat API docs:

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.

Basically, I need to send a message to a logged-in user's Facebook friends, without requiring user interaction (This does not mean I will be spamming a user's friends, just that messages will be scheduled in advance using a PendingIntent registered with the AlarmManager). Is this at all possible ?

I apologize for the length of this post, and if you're still with me, I thank you for your patience. I'm not the kind of person that wants to be spoon-fed, but I've reached my wit's end with this problem and the Facebook documentation is not giving me a clear answer. I need a decisive answer or a usable workaround to this problem.

I have already referred to the these questions without success:

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

2. Android facebook send a message.

解决方案

First off from the 30th of April you will no longer be able to fetch all a users friends as version 1.0 of the Graph API will be deprecated and v2.0 will become the current version of the API. More on versioning can be found here.

As for you actual question about sending messages on Android this is not currently possible via the Android SDK

这篇关于从Android应用发送消息给Facebook的朋友的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆