Direct Link to 'Like' a Facebook Status - Graph API
My question is whether there is a way to directly 'like' a specific post/event/link from a website.
Right now I am using the JSON data that is available via https://graph.facebook.com/USERNAME/posts to display the most recent posts for my fan page.
However, I don't know how to 'like' each individual post. Actually, in the documentation for the graph API posts ( http://developers.facebook.com/docs/reference/api/post/ ) there actually is supposed to be a "like" action for each post, but when I check the JSON output, there is no "action" parameter available for my posts. I've checked them for other very popular fan pages, and seen, on occasion, a "Share" action for some posts, but not a "Like" action.
Is there any sort of di开发者_运维知识库rect link that I could use to allow users to like my posts? (example: http://www.facebook.com/widget/like.php?userId=USER_ID&objectId=FAN_PAGE_ID&postId=POST_ID)
Any help would be welcome here!
Thanks!
I found the answer! The Javascript I was using was all correct, but I needed to force users to accept additional permissions for the app in order to be able to "like" the posts.
Thanks!
精彩评论