Facebook Graph php -
i'm trying basic informations facebook page 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 when upload on webserver show blank page. knows reason why doesn't work on webserver ?
does remote server allow fetch data via remote urls? see allow_url_fopen configuration directive in php.ini. if not , if can't change configuration have refactor code use ext/curl (if installed).
Comments
Post a Comment