Topic-icon Login Issues.....maybe?

2 years 10 months ago #67305 by fb_100000593916283
Most of my site activity is on the back end of my site and through COVID there simply hasn't been much activity. The Facebook app that I have used for years for JFBC had actually just been disabled today due to lack of activity. I re-enabled it and tried to test my login. That's when the fun began.

First of all when I login via FB (All other social networks configured are working fine) it goes to a URL that starts with

www.facebook.com/login.php?skip_api_login=1&api_key=.......

And goes for several lines of gibberish, but I don't know what it contains so I won't post the complete URL here. The thing that jumped out at me was the "skip_api_login..." part. Is that normal?

In any case after a couple attempts that failed, I was finally able to login via Facebook. However, the screen is like a full browser screen where one would go to sign up for a new account or sign in the old fashioned way:
 

It does log me in though. I am confused however, because this process looks nothing like it has in the past. I have the modal window option turned off so I expect a flat screen but between the "skip_api_login..." and the odd screens, I want to make sure that it is a functional mechanism.

I am also getting an odd error in the back end when I try to make a Social Channel, but I don't know that it is related to my login or not. I only mention it just in case.
Attachments:
The topic has been locked.
Support Specialist
2 years 9 months ago - 2 years 9 months ago #67314 by alzander
Replied by alzander on topic Login Issues.....maybe?
Steve,
Good to hear from you and I hope all is well!

I'm unsure what the skip_api_login is either. Facebook is always changing URLs and we don't have control of the process after we hand it off. I did try to login on your site though and found some issues.

When I use the "Login" link and try with Facebook, the URL I go to looks normal:
https://www.facebook.com/dialog/oauth?client_id=149105...
However, a popup appears with:

URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.


I then realized I was at your site without www. When I added www to the URL, that error message went away. So, the first thing you need to do is go into the Facebook Developer Area and in the Facebook Login -> Settings area, under "Valid OAuth redirect URIs", make sure you have the www and non-www version of your URL along with the JFBConnect login path, like:
https://www.yourdomain.com/index.php?option=com_jfbconnect&task=authenticate.callback&provider=facebook

Next, for the login issues you're seeing, the problem may be caused by having Channels setup. When you setup a Channel, there are extra Facebook permissions required to read and write to a user's Page. The extra trips back and forth may be caused by that, which normal users wouldn't see.

To test, I'd recommend:
* Trying from another Facebook account (especially one that is not an admin of your FB app)
* You can delete the Channel, which will remove the extra requirements for that user and test that way. Then, recreate the channel later.

I hope that helps work through those issues... and I'll be looking into your other post now as well!

Thanks,
Alex
Last edit: 2 years 9 months ago by alzander.
The topic has been locked.