I’m writing an app for Facebook which browses through shared links that friends have posted.
My goal is, that I dynamically load information from a link that has been shared by a friend. This part is easy and already done. Now I would like to load the comments of that post and the option to like that friend’s post. This however, is a mystery on how to solve…
I tried to use the ‘Like button plugin’, but this likes the link to the post of the link. Not the post. Everything I could have come up with for the URL parameter made me like the URL not the post behind it.
I can use FQL to like the post using /post_id/likes via POST request, but then I’d would have to create the button from scratch, which may be doable for the like button, but not the whole comments plugin.
According to Facebook, this is by design:
http://developers.facebook.com/bugs/502608973087012
A work around is using the Graph API:
http://developers.facebook.com/docs/reference/api/post/#likes