PHP - Facebook Graph protected object to array -


this code:

try {     $response = $fb->get('/268208533349999/photos?fields=insights.metric(post_consumptions_by_type_unique,post_stories),width,name,images,link,likes.limit(0).summary(true),comments.limit(0).summary(true)&limit=5', 'tokensdjkfskdjfhhkj'); }  catch(facebook\exceptions\facebookresponseexception $e) {     echo 'graph returned error: '.$e->getmessage();     exit; }    echo '<pre>'; var_dump($response); echo '</pre>'; 

i this:

  ["request":protected]=>   object(facebook\facebookrequest)#7 (9) {     ["app":protected]=> 

etc.. it's small part of response. how can convert $response normal array??


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -