Jump to content

PHP problem in FB connect...


csetube

Recommended Posts

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...

Link to comment
https://forums.phpfreaks.com/topic/275552-php-problem-in-fb-connect/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.