file_get_contents('https://graph.facebook.com/me/accounts?access_token=ACCESS_TOKEN_HERE');
When I open this link in browser with my access token It gives a list of all of my Facebook pages and when I try to echo it with file_get_contents
, it gives the following error:
Warning: file_get_contents(https://graph.facebook.com/me/accounts?access_token=ACCESS_TOKEN_HERE) [function.file-get-contents]: failed to open stream: Permission denied in /home/www/***********.php on line 4
Also file_get_contents
works fine with any other website.