Topic-icon FB Login not working?

Active Subscriptions:

None
9 years 9 months ago #45176 by kenaki
FB Login not working? was created by kenaki
Hello,

When I click on the login with FB button, the login status box pops up for an instant and then disappears. It's not logging me in. Any ideas? FWIW, the first time I try to login, it asks me for permission for FB and whatnot but it doesn't log me in.

Thanks,
Ken
avinardiaacademy.com
The topic has been locked.
Support Specialist
9 years 9 months ago #45179 by alzander
Replied by alzander on topic FB Login not working?
For some reason, the following message is shown in the Javascript console before I even try to authenticate:

Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.

I'm not sure what that means, but it's coming from the following line on your page:
<script type="text/javascript" src="http://www.intensedebate.com/js/genericCommentWrapperV2.js"></script>
I don't know what that is either, but my best suggestion for now is to try and disable that Javascript commenting thing and see if authentication begins to work.

Another option is to go to the Configuration -> Facebook area of JFBConnect and set the "Show credentials in popup" setting to "No". That will do a redirection based login, instead of using the popup authentication window, and may fix your issue.

I hope that helps, but let us know how the above goes.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 9 months ago #45419 by kenaki
Replied by kenaki on topic FB Login not working?
Thanks for looking into this.

I disabled the RokComments extension. Does that change anything in regards to what you are seeing for errors?

Some background info that might help: I packed this site up with akeebackup and moved it from a different domain. Everything works fine on the old domain. (Once I get all this working, I'm going to set up a redirect from the old domain.)

Thank you,
Ken
The topic has been locked.
Support Specialist
9 years 9 months ago #45432 by alzander
Replied by alzander on topic FB Login not working?
Ken,
I'm unsure why the popup isn't working. Everything looks correct now and I see no HTML or Javascript issues that would explain the problem.

With that said, I tried using the server side authentication on your site, and that properly works. Instead of the user's credentials being shown in a popup, they'll be redirected to Facebook and then immediately back to your site. I'd try enabling that setting for now in the JFBConnect -> Configuration -> Facebook section. Please set the "Show 'Login Credentials' in popup" to "No" and that use the server side authentication method.

Please test and let me know if that helps. At the least, it should make authentication work. If you don't like that flow, we can go from there to get the popup to work, but you'll have some functional login until then.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 9 months ago #45818 by kenaki
Replied by kenaki on topic FB Login not working?
Hi Alex,

I changed the settings as you suggested but it still isn't working… I moved this entire site from a different domain using akeebabackup. Perhaps that piece of information will give you a clue as to why this isn't working?

I was hoping to maintain the user accounts throughout the site migration but maybe I will have to delete the JFBC component and reinstall? What do you think?

Thanks,
Ken

File Attachment:
The topic has been locked.
Support Specialist
9 years 9 months ago #45823 by alzander
Replied by alzander on topic FB Login not working?
I'm not seeing any reason that it should work. Looking at the requests that are being sent back and forth between Facebook, things look as they should.

Regarding users, you shouldn't need to delete everything and start over. That really won't fix anything. You can try to uninstall JFBConnect and reinstall, just to make sure all the files are installed correctly. Uninstalling won't delete the database tables though, so previous user connections will be intact.

From here, the only suggestions I have are:
* Set the "Enable Debug Mode" to Yes in the JFBConnect -> Configuration area. That may show a better message as to why the authentication isn't working.
* Private Message me FTP credentials for your site. With that, we can add some debug code to determine what information is coming back from Facebook and why that's not letting the login process work.

Thanks,
Alex
The topic has been locked.