shade- / myfacebook-connect Goto Github PK
View Code? Open in Web Editor NEWA plugin to integrate Facebook with MyBB, letting users login and register through Facebook.
A plugin to integrate Facebook with MyBB, letting users login and register through Facebook.
Anybody here can help me ?
My Forums Link : https://www.giler-it.com/
I can register and login but i found this in my error_log
[23-Jun-2014 08:50:32 America/Chicago] PHP Fatal error: Call to a member function sprintf() on a non-object in
../.. /.../inc/plugins/MyFacebookConnect/class_facebook.php on line 189
Hello,
Could you help me, please? I cannot activate this plugin because get message 443 port closed.
However, I can connect to Facebook by HTTPS.
This is lynx from console
https://dl.dropboxusercontent.com/u/16852973/Selection_003.png
I think you wanted to use the lang class here :P (Haven't read the release thread for a while now, so not sure whether it has been reported before)
Facebook updated their APIs changing publish_stream with publish_actions, causing the permissions to publish on user's behalf not to be prompted correctly and thus an error is returned instead, while still registering the user correctly but not logging him in.
Since port 443 must be open in order to retrieve data from Facebook's servers, a check against port 443 status should be added to the plugin's page, triggered when installing the plugin.
An unknown error occurred. The output of the error is:
couldn't connect to host
Please report this error to an administrator and try again.
I don´t know why, but google login works but facebook login doesn´t,
What is the problem? :/
Version of PHP 5.4 version of plugin: 2.0.2 mybb version: 1.6.14
Host www.dlix.us
Is possible to liek a fb page during registration?
Hi,
I have made it such that my board's "Notify me by email when I receive a new Private Message." option is turned on by default in user registration.
However, using this plugin, new users do not inherit the default options set.
I was wondering if it were possible to modify the plugin to customize user registration more in terms of forum options, or at least provide me with a solution to this issue.
Thanks!
Hi,
Your plugin is magnificent. But i have a very little issue with one click registration. I can't ask users what to sync although i tried with both yes and no option.
I'll be happy if you find a way to fix this.
Best wishes.
An option for verifying emails before activating account.
Hello,
Not using ssl in my site works,
but using ssl shows error on base_facebook.php 1294
do you have any idea?
thanks
If Post to Timeline set to "on" and user doesn't allow the permission, forum returns error #200 and doesn't log user in.
This continues in a "loop" whenever the user clicks the Facebook register button on the forum. Eg, asking for permission again for the timeline post from the forum, if user denies, returns error again and doesn't log them on. User can never logon until allowing the post to Timeline permission.
Hi
I am randomly getting:
Type: 2
File: myfbconnect/src/facebook.php (Line no. 49)
Message
session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /forum/inc/functions.php:98)
ty!
When accessing myfbconnect.php directly on MyBB 1.8.4 I get the following error message:
An unknown error occurred. The output of the error is:
Facebook needs the CURL PHP extension.
Please report this error to an administrator and try again.
My website is www.slaveryreport.com
Default Avatar doesn't check for $user_info['uid'] before updating the database, leading to MySQL errors.
The way MyConnect plugins were developed tries to consider third party plugins but the $user_info array is void. I must replace the current $user array with $user_info and globalize it, so other plugins can use it thinking it comes from a regular registration.
In class_facebook.php, line 277 you have
$user_info = $userhandler->insert_user();
$plugins->run_hooks("member_do_register_end");
But inside plugins run from that hook, they cannot access the info in $user_info. For the normal registration process, the $user_info variable is populated with the new user info for the plugins.
Image of the error messge: http://puu.sh/hjc0T/d674b3c065.png
Following images are from the facebook settings:
http://puu.sh/hjc7C/8273a0ca60.png
http://puu.sh/hjc8x/cc55e2a5db.png
http://puu.sh/hjc9a/c81c4cc3c8.png
http://puu.sh/hjc9L/3939d42239.png
Thanks for the support.
hi, i screw up myBB forum of mine, so i need to fully restore, either files and database.
and, after restoration Facebook and Twitter Connect stop working.
the error:
FacebookApiException Object ( [result:protected] => Array ( [error_code] => 6 [error] => Array ( [message] => name lookup timed out [type] => CurlException ) ) [message:protected] => name lookup timed out [string:Exception:private] => [code:protected] => 6 [file:protected] => /home/k5601503/public_html/myfbconnect/src/base_facebook.php [line:protected] => 977 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/k5601503/public_html/myfbconnect/src/base_facebook.php [line] => 909 [function] => makeRequest [class] => BaseFacebook [type] => -> [args] => Array ( [0] => https://graph.facebook.com/me?fields=id,name,email,cover,birthday,website,gender,bio,location,verified [1] => Array ( [method] => GET [access_token] => 557651720949408|0a38bbd6eaa5eb3e7da17df5644d7fc6 ) ) ) [1] => Array ( [file] => /home/k5601503/public_html/myfbconnect/src/base_facebook.php [line] => 876 [function] => _oauthRequest [class] => BaseFacebook [type] => -> [args] => Array ( [0] => https://graph.facebook.com/me?fields=id,name,email,cover,birthday,website,gender,bio,location,verified [1] => Array ( [method] => GET ) ) ) [2] => Array ( [function] => _graph [class] => BaseFacebook [type] => -> [args] => Array ( [0] => /me?fields=id,name,email,cover,birthday,website,gender,bio,location,verified ) ) [3] => Array ( [file] => /home/k5601503/public_html/myfbconnect/src/base_facebook.php [line] => 654 [function] => call_user_func_array [args] => Array ( [0] => Array ( [0] => Facebook Object ( [sharedSessionID:protected] => [appId:protected] => 557651720949408 [appSecret:protected] => 0a38bbd6eaa5eb3e7da17df5644d7fc6 [user:protected] => [signedRequest:protected] => [state:protected] => [accessToken:protected] => 557651720949408|0a38bbd6eaa5eb3e7da17df5644d7fc6 [fileUploadSupport:protected] => [trustForwarded:protected] => ) [1] => _graph ) [1] => Array ( [0] => /me?fields=id,name,email,cover,birthday,website,gender,bio,location,verified ) ) ) [4] => Array ( [file] => /home/k5601503/public_html/myfbconnect.php [line] => 73 [function] => api [class] => BaseFacebook [type] => -> [args] => Array ( [0] => /me?fields=id,name,email,cover,birthday,website,gender,bio,location,verified ) ) ) [previous:Exception:private] => )
The title says all. Admins should be able to use this with a fallback - as a setting - for people who want to use faster registrations or logins.
First of all thanks for your plugin man. It was working awesome till yesterday. Today when i tried to connect through my FBconnect, after loading for few minutes it has shown me "The webpage has redirect loop" & Error code: ERR_TOO_MANY_REDIRECTS. Is this the problem with my website or plugin ? any help is much appreciated
Hello were is the docs for setting up this also for the twitter and the google one ps I am getting
Given URL is not permitted by the Application configuration: One or more of the given URLs is not permitted by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
I am using url http://evo-nuts.co.uk
It was fine until couple of weeks ago when I noticed that it gives Error 500_Internal Server Error.
If I am not signed in on facebook already it brings the login page of facebook but when I try to login it gives the error. If I am already signed in on facebook and try to login in the forum it gives me the Error 500 directly.
I thought maybe you have any suggestions. I am using a shared server and I think maybe something changed on the server side. On the other hand I am also using facebook login (different from yours) on another website and it is still working fine even though they use the same hosting. So I have no idea what might be the problem. What do you think?
Thank you
Post on user's wall
Enable this option to post a message on the user's wall when he registers or links his account to your board. Posting permissions will be automatically asked when authorizing your application. When this is active, users might wait a bit more when registering for the first time due to data being transferred to Facebook.
It is not working
This is an extension to https://github.com/Shade-/MyFacebook-Connect/issues/50 ...
After adding a separate template bit for the login button, can you also add the button to the error_nopermission template.
Hi,
when logging in with facebook, it does not redirect you back to your forum after logging in - instead it takes you to facebook. if you manually browse to your forum, it'll have you logged in as the facebook account you used.
A very strange issue it just happens randomly .
I created a user group for the facebook users and in the plugin settings changed the group after registration to that group. The first time it worked perfectly but then after 2-3 times while registering it automatically changed to the Administator group . Mybb showed a no permission page with warnings then I checked that user in the ACP where its Primary usergroup was Administrator.
I am wondering what would be the result of having an user in my board, and then having another, via facebook with the same name, registering in my board.
Is the 2nd user shown an error message? If so, is there any way to correct their username and to register?
Please excuse me if this is already documented, I haven't yet taken a good look at the documentation regarding this subject.
Regards,
NewEraCracker
When the user is registering with myfacebook connect and after they accept the request for permissions by Facebook, they are redirected to an address of this type:
.../myfbconnect.php?action=do_login&code=AQD4JpWw09K3qBxgtQ7-1tKVjx_PZXeG9mPZcQqfPqSmvFdRI3mLs883wsqWH510pMEYbjn0_GUjL_nUXVM4ZGVJbBIKfBXECE8L-[...]&state=d84b6e18747a934d45ca79269a1bfaca#_=_
and a message saying "You are already logged into the board" is outputed.
How can I fix this? I took a look at the code, and in /src/base_facebook.php there is a line saying:
redirect_uri => $currentUrl, // possibily overwritten
has it do do with this? Thanks.
As discussed here, when you register with Facebook and the registration process fails because the username you've chosen is already registered, the plugin will output the following error:
An unknown error occured. The output of the error is: Array Please report this error to an administrator and try again.
Whereas it should load myfbconnect.php?action=fbregister (both for One-click registration and for 2Step registration) with an inline error prompted.
Pls my facebook connect return an erro when users are trying to register with facebook in my forum here is the erro type [size=30][color=red]An unknown error occurred. The
output of the error is: c o u l d n ' t c o n n e c t t o h o s t Please report this error to an
administrator and try again.[/color][/size]
hope to hear from you
best regard {Adamzy}
I have follow the istruction but when i try to get link to FB:
But after more test, I haven't found the problem.
As the title says.
When the Force Users to Login option is enabled the, myfbconnect.php?action=login
login link does not work.
Trying to understand the difference between login and register. There is no link for register. When trying to register with choose password settings in the admin area of "One-click registration" I get the error code: The password you entered is not complex enough. Please enter a password that is at least 6 characters long, and contains an upper case letter, lower case letter and a number., but there is no field to choose password.
Hey there, currently trying to provide custom open graph stories for my users (like, {user} posted a new thread on {site}) and was wondering if I can get a valid access token from MyFBConnect somehow?
Even if multiple registrations for the same email address is disabled, they can still register using Facebook Connect if their Facebook has the same email.
Link to thread: http://community.mybb.com/thread-157035.html
We really should add something like a module in the ACP to check for structure integrity and similar.
I was testing the 2.0 version, not sure if you are aware of these issues or not.
Publishing feature is working.
Errors
<script>inc/db_mysqli.php</script>
<line>891</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given</message>
This error with Inlinesuccess message deactivated
<script>inc/functions.php</script>
<line>855</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/xxxx/inc/class_error.php:215)</message>
This error with Inlinesuccess message activated
<script>inc/plugins/inlinesuccess.php</script>
<line>187</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/xxxxx/inc/class_error.php:215)</message>
Hello Shade,
I'm having problems trying to import the facebook profile picture.
The pic is not fetched because usercp > "avatar url" field is populated with a url like "http://graph.facebook.com/nnnnnnnnnnnnnnn/picture?width=100&height=100" which is not a direct link to a picture, but it's a redirecting url which redirects to the actual picture.
Any clues on how to fix this?
After the plugin is installed and enabled, it adds — <a href="{$mybb->settings['bburl']}/myfbconnect.php?action=login">{$lang->myfbconnect_login}</a>
to the header_welcomeblock_guest template.
However, when the plugin is disabled with the master switch, these template edits still exists. The button is still there, but since {$lang->myfbconnect_login}
is empty, it does not show.
Instead, can you a separate template bit containing the button so that when the plugin is disabled, the button is removed completely?
After logging it adds #= in the end of the app redirect url
Like this http://www.mysite.com/index.php#_=_ Is this a bug or something ?
The current update manager is quite inefficient, as it must be edited in every copy of the plugin, every time. People might not upload the updated manager, and an update might fail. The solution would be connecting to an external server, downloading the code required to update the plugin and run it.
Hi!
I'm following all steps, but the facebook page for create apps is some different than your documentation, even so I think that I do all steps well.
The error is "The redirect_uri URL must be absolute",
If you need more information, please ask me
Hello, do you think there is a way to disable the regular Login/Signup system when MyFacebook-Connect is working? I would like users to only login and signup through Facebook..
Hi, the section about creating the facebook app has all its pictures broken
These are the steps to the problem
I am using the one click login. The only way I could find to fix this is by clearing the cache of the web browser.
File: inc/plugins/myfbconnect.php
Line:
"hideemail" => 1,
Unfortunately that doesn't work as MyBB (at least 1.6.10) doesn't fetch that data from $user["hideemail"] but fetches it from $user["options"]["hideemail"],
Fix is to change that line to:
"options" => array("hideemail" => 1),
Regards,
NewEraCracker
A class with OO code is much easier to handle. MyFacebook Connect should have one, definitely.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.