MyBB Community Forums

Full Version: Fbconnect errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Any help with below errors.. I am getting those while trying to login to site via facebook connect plugin.. I tweeked the templates a bit.. fbconnect is not in fbcore anymore however all content of fbcore are in forum..

Quote:Type: 2
File: fbconnect.php (Line no. 61)
Message
file_get_contents(https://graph.facebook.com/me?) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request

Line 61 is:: $fbuser = json_decode(file_get_contents($graph_url));



Quote:Type: 2
File: fbconnect.php (Line no. 55)
Message
file_get_contents(https://graph.facebook.com/oauth/access_token?client_id=Deleted due to security&redirect_uri=http%3A%2F%2Fmcxcommoditytrading.com%2Fforum%2Ffbcore%2Ffbconne​ct.php&client_secret=Deleted due to security&amp;code=) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request

Line 55 is ::$access_token = file_get_contents($token_url);


Quote:Type: 2
File: inc/plugins/invite.php (Line no. 294)
Message
session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/content/92/8207792/html/forum/fbconnect.php:50)

seriously help required ..

Quote:Warning [2] require_once(/home/content/92/8207792/html/forum/fbcore/fbconnectplugin.php) [function.require-once]: failed to open stream: No such file or directory - Line: 20 - File: inc/plugins/fbconnect.php PHP 5.2.17 (Linux)
File Line Function
/inc/plugins/fbconnect.php 20 errorHandler->error
/inc/plugins/fbconnect.php 20 fbconnect_info
/admin/modules/config/plugins.php 485 fbconnect_info
/admin/index.php 517 require

Fatal error: require_once() [function.require]: Failed opening required '/home/content/92/8207792/html/forum/fbcore/fbconnectplugin.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/92/8207792/html/forum/inc/plugins/fbconnect.php on line 20

Getting above error while accessing my plugin directory from cpanel. Sad

Do I need to modify my fbconnectplugin.php where ever function is mentioned as in example fbcore_fbconnect_install, I just need to remove fbcore_ Below is few of the functions copied from fbconnectplugin.php..




Quote:function fbcore_fbconnect_install()
{
global $db;
$db->query("ALTER TABLE ".TABLE_PREFIX."users ADD fbuid bigint(50) NULL");
}
function fbcore_fbconnect_uninstall()
{
global $db;
$db->query("ALTER TABLE ".TABLE_PREFIX."users drop fbuid");
}
function fbcore_fbconnect_is_installed()
{
global $db;
if($db->field_exists('fbuid', 'users'))
{
return true;
}
return false;
}
function fbcore_fbconnect_activate()
Try uploading all clean plugin files again.
Thanks Omar G.
I just uploaded the copy of all files in fbcore folder and it stopped. I have these files at 2 places now. Error stopped.. Smile