Results 1 to 4 of 4

Thread: Facebook 'Like' ?

  1. #1

    Default Facebook 'Like' ?

    Hi,

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

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    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.
    Keith Donald
    Core Spring Development Team

  3. #3
    Join Date
    Aug 2004
    Posts
    1,074

    Default

    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).
    Craig Walls
    Spring Social Project Lead

  4. #4
    Join Date
    May 2008
    Location
    Boston, MA
    Posts
    63

    Default

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •