getting this error after execting this php code in webhost (cloudaccess.net).
{"error":{"message":"(#5) Unauthorized source IP address","type":"OAuthException","code":5}}
can anyone can help me...?
<?php error_reporting(0);
function url_get_contents ($url) {
if (!function_exists('curl_init')){
die('CURL is not installed!');
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$output = curl_exec($ch);
curl_close($ch);
return $output;
}
$graph_url = 'https://graph.facebook.com/me?access_token=VALID_TOKEN';
$graph_data = url_get_contents($graph_url);
echo $graph_data;
?>