Retrieving the names of the user's friends who have liked a particular status message

Sometimes we may want to retrieve details of the people who have liked a particular status of a user. This can be used to get the top followers of a user based on these interactions.

Getting ready

We should have created config.php and index.php as explained in the beginning of this chapter. Also, we need to have the ID of the status message on which we want to perform this operation.

How to do it...

The following steps will retreive the names of the user's friends who have liked a particular status message:

  1. To retrieve the likes of a particular status message, we need to add the following code to the already existing code in index.php, which has been discussed inthe ...

Get Facebook Application Development with Graph API Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.