how to print this php array? -
in facebook api, have array.
{ "id": "587967941220651", "about": "", "can_post": true, ...
and printed array this.
$request = new facebookrequest( $session, 'get', '/page_name' ); $response = $request->execute(); // response $graphobject = $response->getgraphobject()->asarray(); // print profile data echo '<pre>' . print_r( $graphobject, 1 ) . '</pre>';
in web page, got results.
array ( [id] => 587967941220651 [about] => [can_post] => 1 ...
and time, have kind of array.
{ "data": [ { "id": "1444336682520148_1458726944414455", "from": { "id": "1444336682520148", "name": "james" }, "story": "james shared kevin's status update.",
as see, there "data" in front. how can print kind of array? thank you.
Comments
Post a Comment