Reputation: 109
I have been searching all over but cannot find an answer:
With my app a page admin can publish a post to his page. I am now looking for a way to also allow users to LIKE the post via my app in such a way that the LIKE count for the post on the page actually increases.
How would I do this?
Upvotes: 0
Views: 435
Reputation: 4439
You can like a Post via the Graph API by making an HTTP POST request to graph.facebook.com/POST_ID/likes connection with an access token that has publish_stream
permission. Read more about this here:
https://developers.facebook.com/docs/reference/api/post/#likes
Upvotes: 0
Reputation: 164137
According to the Likes connection of the Post object:
You can like a Post by issuing a HTTP POST request to the POST_ID/likes connection with the publish_stream permission
You'll need to ask for the publish_stream
permissions from you users and then you can (JS example):
FB.api("POST_ID/likes", function(response) {
console.log("Like response: ", response);
});
Upvotes: 2