Facebook Graph problem

Posted by attar on Stack Overflow See other posts from Stack Overflow or by attar
Published on 2011-07-01T07:28:30Z Indexed on 2011/07/01 8:22 UTC
Read the original article Hit count: 298

Filed under:
|
|
|

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 ?

© Stack Overflow or respective owner

Related posts about php

Related posts about facebook