I have a client site where we currently have a much underused ‘shortlist’ feature for items listed on the website. In this case the items are properties for sale, users can add the ones they are interested in to a shortlist for future reference.
We also recently added Facebook ‘Like’ buttons to the website which have had a lot of use, the barrier of entry is lower (I guess) because users are already logged in to Facebook.
What I would therefore like to do is modify the property shortlist feature so that it simply displays a list of the properties that a logged in Facebook user has ‘Liked’ on the clients domain.
How would I get at this data (either via PHP or JS) using the Facebook API?
that’s not possible out of the box. You have two possibilities:
Display a social plugin (Activity Feed) to display the recent actions (e.g. “like”) on the mentioned. The plugin itself is like a drop in widget, so you can’t style it at all.
Ask the user for the “user_likes” permission. If the user authenticates your app and the additional permission, you can perform a fql query to get all liked items. It’s a little more complicated then (1), but with the mentioned permission you have all required data to perform the custom sort algorithm you want.