csetube Posted March 12, 2013 Share Posted March 12, 2013 (edited) 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... Edited March 12, 2013 by csetube Quote Link to comment https://forums.phpfreaks.com/topic/275552-php-problem-in-fb-connect/ Share on other sites More sharing options...
rgopal101 Posted March 17, 2013 Share Posted March 17, 2013 there is error in fbconnect file check it manually.. Quote Link to comment https://forums.phpfreaks.com/topic/275552-php-problem-in-fb-connect/#findComment-1419143 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.