I saw that I can't send castum private message through the Facebook API:
#How to send message facebook friend through graph api using Accessstoken
and then I saw this solution:
#Message via chat API
That allows you to send message through the Chat API. but this solution is for ruby on rails only.
Can someone show me how to do it in Java/Android code? or knows how to send message Via Jabber/XMPP service from android.
Related
I have WebView android app for our website, running on wordpress core.
On the website we are using social network extension, so users can send private messages, reply to the comments and so on. For that we have on website a notification panel.
Now the task:
Is it possible to use the notifications on the website and send it somehow to the android app as push notification?
What is the best way to do it? Or is there a developer that can help me with this?
You have to add the FCM message sending function to the wordpress server or your server.
After that, you need to add the FCM receiving part in Android and send the device_id to the server so that the FCM message can be received.
How do I send message through Telegram from my app in Android ?. Check Telegram API and documentation is very bad.
I have an android application with a backend web application developed in django.
I am using django-push-notification library to enable push notification in my django backend application.
In the android application I send the registration id to the backend django application and it is stored in the DB successfully.
When I try to send the test message from the admin area, I got a confirmation that all messages are sent but I did not receive any message on my android application.
I suspected the android application but I wrote some code to test the application receiver and it worked fine, so I think the problem is in the django application.
Is there any method to make sure that the messages sent from the django app is received by the google cloud messaging service ?
I worked with GCM and django-push-notification long time ago. Although I do no clearly remember, but you can try something like:
Check the response from GCM after django send message.
Make sure that your android app use the right key for getting the message body( I remember that django-push-notification use msg key)
Hi I want to send notifications from android app to facebook. To send facebook notification i got this link : https://developers.facebook.com/docs/concepts/notifications/ But i am not sure how to use this link in android to send notification.
Please can any body guide me for this?
You can't send notifications from an Android app. Tried to POST using the link you provided and got the following error:
{"error":{"message":"(#200) Only web canvas apps can send app notifications","type":"OAuthException","code":200}}
Maybe you could use this one:
https://developers.facebook.com/docs/android/send-requests/
We're not allowed to send notifications from Android app using the notifications API, nor sending App Requests from non game app using Requests APIs. I'm interested too to know how can we notify the user from non-game-android app.
I haven't found a Facebook API to send a private message to the logged in user's friend.
I would like to use something like this
But calling this dialog up in a browser on the phone isn't a great user experience.
Is their either an API i can use to send a message to a Facebook friend?
Or are there plans to support the send dialog on Android?