Is it possible to get the number of a user's friends who clicked 'Like' on a particular item on a page on my site? i.e. something along the lines of '45 of your friends Like this'.

Cheers.

Comments

Thanks all, for your answers.

Written by karim79

Accepted Answer

When you put a like button on a website, facebook renders it in the following format:

a) if the current user is logged in on facebook: Friend 1, Friend 2 and x others like this (or just the number of total likers if no friend like that)

b) if the current user is not logged in: x people like this.

In order to get the above result, you need to use standard layout and to have show_faces value set to true. If you want to customize that, you have to use the Graph API/FQL. But it is not that simple :)

Written by misterjinx
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki