Announcement Announcement Module
Collapse
No announcement yet.
Facebook 'Like' ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Facebook 'Like' ?

    Hi,

    Is it possible to perform a facebook 'like' programmatically through the Spring Social api ?

  • #2
    Greenhouse shows an example of using Spring's JavaScript widget toolkit to Like various objects (e.g. members, groups). I'm not sure if Facebook exposes something in their graph API for liking various things. If it does, Craig could say for sure if we support this already. I would also check the Facebook API reference on their developers site.

    Comment


    • #3
      Facebook does suppose "Like" through the Graph API and Spring Social 1.0.0.M3 supports it via the LikeOperations interface. For example:

      Code:
      facebookTemplate.likeOperations().like(someObjectId);
      Where "someObjectId" is the ID of the thing you want to "like" on behalf of the user (such as the object ID of a wall message).

      Comment


      • #4
        One use case would be avoiding having to pull in yet another 3rd party javascript resource and increase page load/render time. If the same sort of thing can be achieved via a simple link that fires off an AJAX call on the server, I'd say it is worth it.

        Comment

        Working...
        X