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
Post a Comment