Send a message to a friend from a Android app

I have an application in which I implemented Facebook login. I can get registered Facebook users Facebook using the Graph API.

The main problem is that I need to be able to communicate with registered users. This message can occur in any way possible: a message on the wall, an Inbox or a chat message.

We will remove the ability to send messages to the walls of friends of users through the Graph API. In particular, messages against [user_id] / feed, where [user_id] is different from the session user or stream.publish, where target_id is different from the session user, does not work.

  • Sending chat messages is outdated and will soon be impossible. According to the chat API docs:

On April 30, 2014, we announced the cancellation of the XMPP Chat API as part of the Platform API Version 2.0 release. The document cover service and APIs will no longer be available after April 30, 2015.

As soon as version 1.0 became obsolete on April 30, 2015, chat.facebook.com and xmpp_login permission will no longer be available.

We recommend that developers who integrate with the XMPP Chat API abandon this feature from their applications before April 30, 2015, to avoid broken experiences.

Basically, I need to send a message to registered Facebook users with friends, without requiring user interaction (this does not mean that I will spam users' friends, just that the messages are scheduled in advance using the PendingIntent registered using AlarmManager ). Is it possible?

I apologize for the length of this message, and if you are still with me, I thank you for your patience. I am not the kind of person who wants to be a toasted spoon, but I have achieved my goal with this problem, and the Facebook documentation does not give me a clear answer. I need a decisive answer or a helpful solution to this problem.

I already mentioned these questions without success:

1. Send a private message to my friends using my Android app .

2. Android facebook will send a message .

+2
android facebook facebook-graph-api
Mar 26 '15 at 10:56
source share
1 answer

First, from April 30, you will no longer be able to get all the friends of users, since version 1.0 of the Graph API will become obsolete, and v2.0 will become the current version of the API. More on versioning can be found here .

Regarding the actual issue of sending messages on Android, this is currently not possible in the Android SDK

+2
Mar 30 '15 at 15:35
source share



All Articles