Im using MYBB forums..
Im using FB connect for my website.
The code in which I get error is stated below.
$token_url = "https://graph.facebook.com/oauth/access_token?client_id=".$app_id."&redirect_uri=".urlencode($my_url)."&client_secret=".$app_secret."&code=".$code;
$access_token = file_get_contents($token_url);
$graph_url = "https://graph.facebook.com/me?".$access_token;
if($mybb->settings['fbconnect7'] == '0')
{
$fbuser = json_decode(file_get_contents($graph_url));
}
In the above code, I get access token and expiry when I copy the code manually and place it in the browser.
But not working when placed in PHP file..
I dono what problem it is..
See my FB connect @ http://instruct.bugs3.com/au/
Hope anyone can clear my error...