Json php in a page
-
Hi all,
I’m trying to make this json code run in a normal page.. Does not work.. Do you know how to do it?
<?php $json_url ="https://graph.facebook.com/6665038402"; $json = file_get_contents($json_url); $json_output = json_decode($json); $likes = 0; if($json_output->likes){ $likes = $json_output->likes; } echo '?=','Total likes: '.$likes; ?> </p>
[Please post code snippets between backticks or use the code button.]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Json php in a page’ is closed to new replies.