Announcement Announcement Module
Collapse
No announcement yet.
Send Facebook Message using Spring Social Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Send Facebook Message using Spring Social

    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, can this be added?

    Actually, I believe it is no longer to do so (send private messages from an external app) in Facebook. May be an API to send an App Request would do here?
    Last edited by saket101083; Nov 21st, 2011, 02:40 AM.

  • #2
    Use the ownerId portion of the post() method to that of your friend.

    E.g. Alice wants to post a message to Bob.
    Get Alice's friends and find Bob's user ID

    Then do:
    Code:
    facebook.feedOperations().post(bobsId, message);
    I think the owner ID of the post() method can be that of a page too.

    Comment


    • #3
      That is still a post on their (Bob's) wall, and not a Message.
      Last edited by saket101083; Dec 15th, 2011, 04:28 AM.

      Comment


      • #4
        Originally posted by saket101083 View Post
        That is still a post on their (Boob's) wall, and not a Message.
        I hadn't realised there was a difference. Sorry about that! Reading the API docs on Facebook suggests this API is undergoing a change from the graph API to one which is for "registered developer accounts only". So I suspect this won't be available in spring-social-facebook just yet.

        http://developers.facebook.com/docs/...e/api/message/

        The FacebookTemplate implements GraphAPI - so if you can access Messages and post Messages, it needs to be performed using the low level API (until Facebook replace this facility).

        Comment


        • #5
          In fact, it looks like you can only read a message from Facebooks API. Not send...

          Comment

          Working...
          X