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.
We should have created
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:
- 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 ...