Facebook ‘Like’ a wall post using Graph API | TO THE NEW Blog

Hi, In one of my Grails project, i needed to 'Like' any Facebook wall post using facebook API. I searched about it and found a way to achieve this using Facebook Graph API and thought it worth sharing. To achieve it, we should have a valid facebook access_token, which can be obtained using steps described here. After obtaining a valid access_token, we can use graph API to like any Facebook Wall post. We need to have the post_id of the facebook post, which we wants to 'Like'. Code to achieve this is as :- This issues a POST call for 'Like' that particular wall post on facebook. This worked for me :). Hope it helps. Useful Links: http://developers.facebook.com/docs/reference/api/post/#likes http://www.tothenew.com/blog/integrate-java-application-with-facebook-using-graph-api/ Cheers!!! Vishal Sahu vishal@intelligrape.com

28 Jun 2012 ... Hi, In one of my Grails project, i needed to 'Like' any Facebook wall post using facebook API. I searched about it and found a way to achieve ...

Lee mas