lundi 2 mars 2015

getting only the message of the status facebook php API

im using facebook php api.i want to get only the message (string) of the users status.In my code its returning many things.I want only to get message field.How to get that?



$request = new FacebookRequest($sess,'GET','/400495666788117');
$response = $request->execute();
$graph = $response->getGraphObject();

echo '<pre>' . print_r( $graph, 1 ) . '</pre>';


output :


Facebook\GraphObject Object ( [backingData:protected] => Array ( [id] => 400495666788117 [from] => stdClass Object ( [id] => ******* [name] => ******* )



[message] => aaa
[updated_time] => 2015-03-02T11:59:12+0000

Aucun commentaire:

Enregistrer un commentaire