将消息发送给Facebook好友从一个Android应用程序 [英] Send a message to a Facebook friend from an Android app

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

问题描述

我在我所实现的Facebook登录的应用程序。我能够检索使用图形API登录的用户的Facebook朋友。

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.

我们将删除通过张贴到用户的朋友的墙壁的能力   图形API。具体而言,对[USER_ID] /饲料的帖子,其中[user_ID的]   从会话用户不同,或者stream.publish调用其中   target_id用户与会话的用户不同,就会失败。

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.

  • 发送聊天消息已经去precated,不久将是不可能的。按照 聊天API 文档:

在2014年4月30日,我们宣布了XMPP聊天API的德precation   作为平台API 2.0版的发布的一部分。该服务和API此   文件涵盖2015年4月30日之后将不再可用。

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.

在1.0版本pcated 4月30日,2015年,chat.facebook.com德$ P $   并且xmpp_login允许将不再提供。

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

我们建议谁已经集成了XMPP聊天API开发   德precate从他们的应用程序这个功能2015年4月30日之前,   避免接触的经验。

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好友,的无需用户交互的(这并不意味着我会被垃圾邮件用户的朋友,只是邮件将被定提前使用 PendingIntent 与注册的 AlarmManager )。 这是在所有可能的?

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 ?

我对这个职位的长度道歉,如果你还在我身边,我感谢您的耐心等待。我不是那种人想要被填鸭式的,但我已经达到了我束手无策这个问题,Facebook的文档没有给我一个明确的答复。我需要一个决定性的答案或者一个可用的解决此问题的。

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.

请从这个标记为重复延迟。我已经看到了下面的问题,要么和他们是过时或不适用于我的问题:

Kindly defer from marking this as duplicate. I have already seen the following questions, and either they are outdated or they do not apply to my problem:

1 <一个href="http://stackoverflow.com/questions/10764381/send-private-message-to-my-friends-using-my-android-application">Send悄悄话给使用我的Andr​​oid应用程序 我的朋友(S)。

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

2 Android的Facebook发送的消息

推荐答案

首先,从4月30日,您将不再能够获取全部的用户朋友们的图形API的1.0版本将是德precated和2.0版将成为API的当前版本。更多关于版本可以发现这里

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.

至于大家介绍一下在Android上发送消息的实际问题,这是目前无法通过Android SDK

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

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

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