Terumi
Terumi

Reputation: 347

Creating a facebook likebox

A client of mine (a design studio) asked me to style the like-box social plugin on their site. As far as I know this cannot be done now with the deprecation of "css" parameter on the fbml tag.

So the route I have to take is to recreate the like-box myself using the js SDK (or php SDK), but the problem is that I cannot find the users (and their photos) that like my page. I'm searching through the opengraph explorers parameters but i cannot find anything.

Thank you.

Upvotes: 0

Views: 242

Answers (1)

cpilko
cpilko

Reputation: 11852

You can't recreate the like box on your own. The Facebook APIs will not return a list of users who like your object. This was done to stop people from getting user lists of likers and spamming them.

Currently, you can only query to find if a specific, authenticated user or which of their friends likes your object.

You could build something similar by populating your fake like box with images of recent posters. You would need to deal with filtering out duplicates, and the page posting as itself, but this should get you started: /PAGE_ID/feed?fields=from.name,from.picture&limit=10

You will need an access_token to get this data. I'd authenticate as an app to do it.

Upvotes: 2

Related Questions