By Guy Goodall on Tuesday, 28 March 2017
Posted in Technical Issues
Likes 0
Views 1.3K
Votes 0
Not had any problem using Facebook login until now. No idea why it's not possible to use Facebook login anymore
It would be most appreciated if you guys would take a look at this.

Thanks in advance.

Cheers!

There is an error retrieving your Facebook details. Facebook returns an error message of: "Invalid OAuth access token."
Hi there,

It seems that Facebook have done some updates on their Apps and it somehow cause this issues to happen. And we still investigating this issues on our end we will keep you updated. Thanks for your understanding
·
Tuesday, 28 March 2017 17:14
·
0 Likes
·
0 Votes
·
0 Comments
·
I am getting the same error:
"There is an error retrieving your Facebook details. Facebook returns an error message of: "Invalid OAuth access token.""
Fingers crossed this can be fixed quickly.
·
Tuesday, 28 March 2017 22:50
·
0 Likes
·
0 Votes
·
0 Comments
·
I am getting same error. It was working fine, then stopped.
·
Tuesday, 28 March 2017 22:58
·
0 Likes
·
0 Votes
·
0 Comments
·
I have the same problem too any solution?
·
Wednesday, 29 March 2017 04:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Everyone,

It seems that this issues is because Facebook have made some changes and it seems to mess up those configurations as we have tested this locally, and it seems that we faced same issues as you all facing right now

By the way, we have issued this to our developer, and they currently still checking on this. We will kept you updated on this. Thanks for your understanding
·
Wednesday, 29 March 2017 10:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi!

I don't know if it could help you guys but I found this on FB dev:

++++++++++++++++++++++++++++++++++++++++=

Hello, from this morning (Rome time), the login of my web site stopped to works. It always return this error: An active access token must be used to query information about the current user.
Nothing was changed in my code nor in my facebook app.

Hey, I don't know if this would be helpful to anyone here but I'm going to write it anyway.

I also encountered this error today and after hours of digging through legacy code, I noticed that project was using old FB PHP SDK from 2011 (legacy project).

I found it on github in case you want to compare your version with this that caused me problems:

Code: github.com/facebookarchive/facebook-php-sdk/blob/master/src/base_facebook.php

Problematic lines: #L414 and #L809 (parse_str function).

After I switched from parse_str to json_decode everything started working again.

So instead of :

$response_params = array();
parse_str($access_token_response, $response_params);

I switched to:

$response_params = json_decode($access_token_response, true);

It's working again for me.
Hope this helps!

++++++++++++++++++++++++++++++++++++++++++++++++

I added a Facebook login to my website long time ago. Everything is fine.
But from this morning, I found lots of error 500 from my server. My program stops after the line $session = $helper->getSessionFromRedirect();

Here is my code:
$helper = new FacebookRedirectLoginHelper($fb_callback_url);
try {
$session = $helper->getSessionFromRedirect(); // error 500 happens here from this morning and it cause my program stop
} catch( FacebookRequestException $ex ) {
// When Facebook returns an error
} catch( Exception $ex ) {
// When validation fails or other local issues
}

Anything wrong with getSessionFromRedirect?
Thanks

++++++++++++++++++++++++++++++++++++=

Michel
·
Wednesday, 29 March 2017 18:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Got it!

So according to this cue I found on FB dev:

++++++++++++++++++
So instead of :

$response_params = array();
parse_str($access_token_response, $response_params);

I switched to:

$response_params = json_decode($access_token_response, true);

++++++++++++++++++++

I modified this file as mentionned :administrator/components/com_easysocial/includes/oauth/clients/facebook/base_facebook.php

and it works (at least for me)

The file is attached.

Michel
++++++++++++++++++++++++++=
·
Wednesday, 29 March 2017 18:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Michel,

Thanks for your help and sight Michel. I sure helps us a lot.

Maybe you all can try to upload attached file at this path administrator/components/com_easysocial/includes/oauth/clients/facebook/base_facebook.php and see how it goes
·
Wednesday, 29 March 2017 19:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, this solution is not working in mobile! I´ve tryed to login from firefox for android. When I pushed the "facebook login button" its open the mobile facebook (no ES).

Other issue is that popups not works correctly with Android and iOS.

Regards, Leo.
·
Wednesday, 29 March 2017 22:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Leonardo,

Perhaps you can start a new thread and provide us with your Joomla backend and FTP access so we can better have a check?
·
Wednesday, 29 March 2017 22:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Same problem here - "There is an error retrieving your Facebook details. Facebook returns an error message of: "Invalid OAuth access token.""
·
Thursday, 30 March 2017 00:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Maybe you can upload attached file at this path administrator/components/com_easysocial/includes/oauth/clients/facebook/base_facebook.php on above reply and see how it goes

If problems still persist maybe you can create new ticket and provide us with your Facebook access credentials also. Please advice.
·
Thursday, 30 March 2017 10:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Awesome!!! Solution worked like a charm! Gratzi
·
Friday, 31 March 2017 12:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Friday, 31 March 2017 12:20
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post