Click anywhere to close this dialog

Farewell

Great is the art of beginning, but greater is the art of ending
Henry Wadsworth Longfellow

I announce that I cease all development and activity in the programming universe indefinitely. My career has reached the turning point I was not expecting for at least another year, leaving me highly off guard and without laid-out plans for this hobby's continuity. I have begun a 5-year residency program in Neurosurgery which is clearly not compatible, time-wise, with programming.

I gave in all my passion for developing, and you gave me back your loyalty and trust, even when I did not deserve that much. Now it is the time for payback. I release all my present and past work as Open Source software, in the hope some talented developer will continue maintaining and expanding my vision of a modern, sleek forum software. The intrinsic flexibility of MyBB is the true hidden gem of an otherwise outdated codebase; I do hope the project can continue and be updated complying to the latest coding standards.

I hereby thank Euan, kawaii, andrewjs18, Ben, Matt, Omar G., effone, Eric J., Devilshakerz, Wildcard, JordanMussi and all the other team members I have had the opportunity to work with when I was a MyBB team member. I thank Tomm M, my mentor, who inspired me to pick up coding with his piece-of-art plugins. And finally, I thank all of you MyBBoost subscribers who have helped me getting through my toughest university years economically.

Yours sincerely, Filippo

Can't link existing account with facebook

23 Jul 2018 Edited
#1
This issue is marked as solved
I can't link existing account with Facebook. My mybb version is 1.8.17 and plugin veriosn 3.3. Registration and loging works fine. When Im trying to link accounts I got: "Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request" error.

This is report code:
<?xml version="1.0" encoding="UTF-8"?>
<report name="MyFacebook Connect" version="3.3">
        <id>6</id>
        <dateline>1532293685</dateline>
        <code>100</code>
        <file>/home/sword/domains/odjechani.com.pl/public_html/myfbconnect/src/Facebook/Exceptions/FacebookResponseException.php</file>
        <line>106</line>
        <message>Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request</message>
        <trace> /home/sword/domains/odjechani.com.pl/public_html/myfbconnect/src/Facebook/FacebookResponse.php(210): Facebook\Exceptions\FacebookResponseException::create(Object(Facebook\FacebookResponse))
#1 /home/sword/domains/odjechani.com.pl/public_html/myfbconnect/src/Facebook/FacebookResponse.php(255): Facebook\FacebookResponse->makeException()
#2 /home/sword/domains/odjechani.com.pl/public_html/myfbconnect/src/Facebook/FacebookResponse.php(82): Facebook\FacebookResponse->decodeBody()
#3 /home/sword/domains/odjechani.com.pl/public_html/myfbconnect/src/Facebook/FacebookClient.php(224): Facebook\FacebookResponse->__construct(Object(Facebook\FacebookRequest), '{"error":{"mess...', 400, Array)
#4 /home/sword/domains/odjechani.com.pl/public_html/myfbconnect/src/Facebook/Authentication/OAuth2Client.php(277): Facebook\FacebookClient->sendRequest(Object(Facebook\FacebookRequest))
Flyover 2.4 /home/sword/domains/odjechani.com.pl/public_html/myfbconnect/src/Facebook/Authentication/OAuth2Client.php(226): Facebook\Authentication\OAuth2Client->sendRequestWithClientParams('/oauth/access_t...', Array)
Drafts AutoSave 1.1 /home/sword/domains/odjechani.com.pl/public_html/myfbconnect/src/Facebook/Authentication/OAuth2Client.php(166): Facebook\Authentication\OAuth2Client->requestAnAccessToken(Array)
ACP warning /home/sword/domains/odjechani.com.pl/public_html/myfbconnect/src/Facebook/Helpers/FacebookRedirectLoginHelper.php(228): Facebook\Authentication\OAuth2Client->getAccessTokenFromCode('AQAxklBAjudN9Xv...', 'https://odjecha...')
Issues setting up Flyover /home/sword/domains/odjechani.com.pl/public_html/inc/plugins/MyFacebookConnect/class_facebook.php(128): Facebook\Helpers\FacebookRedirectLoginHelper->getAccessToken('https://odjecha...')
Page is not found /home/sword/domains/odjechani.com.pl/public_html/inc/plugins/myfbconnect.php(484): MyFacebook->save_token()
Facebook and LinkedIn patches /home/sword/domains/odjechani.com.pl/public_html/inc/class_plugins.php(142): myfbconnect_usercp('')
Drafts AutoSave has been installed /home/sword/domains/odjechani.com.pl/public_html/usercp.php(61): pluginSystem->run_hooks(Array)
Flyover development {main}</trace>
</report>
Forum address is https://odjechani.com.pl

Best answer

Shade 23 Jul 2018
Thank you. Try the following edit please.

File: inc/plugins/myfbconnect.php
Find (lines ~482-484):
if ($mybb->input['action'] == 'do_myfbconnect_link') {
        
$FacebookConnect->save_token(); 
Replace with:
if ($mybb->input['action'] == 'do_myfbconnect_link') {
        
$FacebookConnect->set_fallback('usercp.php?action=do_myfbconnect_link');
        
$FacebookConnect->save_token(); 
And try linking your profile again.
Swordancer likes this post

All replies

Shade 23 Jul 2018
#2
Can you screenshot your FB app, specifically the OAuth redirect URI setting? Thank you.
Swordancer 23 Jul 2018 Edited
#3
I remind you that it works with loging and registration. Only linking doesn't work.

[Image: quTDhsQ.png]
Shade 23 Jul 2018
#4
Thank you. Try the following edit please.

File: inc/plugins/myfbconnect.php
Find (lines ~482-484):
if ($mybb->input['action'] == 'do_myfbconnect_link') {
        
$FacebookConnect->save_token(); 
Replace with:
if ($mybb->input['action'] == 'do_myfbconnect_link') {
        
$FacebookConnect->set_fallback('usercp.php?action=do_myfbconnect_link');
        
$FacebookConnect->save_token(); 
And try linking your profile again.
Swordancer likes this post
Swordancer 23 Jul 2018
#5
Thank you very much! It works just fine now. :)
Shade 23 Jul 2018
#6
Thank you for your patience and testing. I will include the fix in the upcoming version 3.4.
Shade 23 Jul 2018
#7
Can you please test the 3.4 release candidate? https://github.com/Shade-/MyFacebook-Connect I have included a slightly different and more elegant patch, but can't test it personally at the moment. You just need to replace the old files and run the upgrade script for the sake of updating the plugin's version in the cache.

Ensure you have a file and database backup before upgrading! :) Thank you!
Eldenroot 23 Jul 2018
#8
So API 2.12 is the latest 2.x version of API, because another is v3.0, does it bring any improvement?

Can I enable "Enforce HTTPS" in Facebook dev for this app? Maybe the tutorial will need a small update.
Shade 24 Jul 2018
#9
V3.0 introduces some changes in Facebook Login which need to be investigated - and I have no time at the moment to dig them deep.

Yes, Enforce HTTPS is highly recommended and supported by MFC. Just be sure to use https as redirect uris.