Facebook Graph problem
- by attar
I'm trying to get basic informations from an facebook page with this code:
<?php
$fb = file_get_contents("https://graph.facebook.com/exemplename", "rb");
$fb_array=json_decode($fb,true);
echo $fb_array['id'];
echo $fb_array['name'];
echo $fb_array['picture'];
?>
This work perfect on xampp local server but when i upload on webserver it just show a blank page. Anyone knows the reason why it doesn't work on webserver ?