Getting the status messages of a user
We can query using FQL to retrieve the status messages of a user, as well as his/her friends.
You should have already set up
index.php as explained in the beginning of the chapter. Also, to be able to access the status message of a user, the application needs to have the
user_status permission. If we even want to access the status messages of friends, then we need the
friends_status permission as well.
How to do it...
The following steps will demonstrate how to get the status messages of a user:
index.phpand append the following code to it:
<html> <body> Status messages of <?php echo $me['name']; ?> are listed below - <br> <?php
- Retrieve the status messages of the user by executing ...