Send Facebook Message using Spring Social
-
04-03-2021 - |
Question
Is it possible to send Facebook Messages (NOT on their wall, but a "Message") to friends using Spring Social?
If yes, which API do I use? If there is no such support in Spring Social, what's the best way to do so from a Java application?
Solution
The best way out that I could think of is to send an email at the ID : {facebook-id}@facebook.com, as it ultimately sends a Facebook message to the user.
OTHER TIPS
For what I know, Facebook doesn't allow to send messages (and also asking friendship) with its API. So I think that you can't send messages to Facebook in a clean way. What you can do is make a bot that navigate the page on the server side and click buttons without user interaction. But I think that it's not so legal...
I would take a look at this site
This website has all the information you need to get started with SpringSource. Here's a link to their forums