First time here? Check out the FAQ!
1

Facebook login javascript error

If I configure askbot with Facebook API key and secret key, the Facebook logo shows, but there is a Javascript error on loading the page, and clicking on the logo does nothing.

The same problem seems to affect this site itself.

Evgeny's avatar
13.2k
Evgeny
updated 2010-11-10 11:52:38 -0500
graeme's avatar
319
graeme
asked 2010-11-08 01:50:03 -0500
edit flag offensive 0 remove flag close merge delete

Comments

could you try to catch the error message and post it?
Evgeny's avatar Evgeny (2010-11-08 11:12:14 -0500) edit
add a comment see more comments

2 Answers

0

Facebook login works for me here. Maybe you have a stale script in cache, try to purge it an log in again. You can also try to sign out of facebook first.

Regardless, these problems should be addressed of course, please post and update on what happens.

Also, when you upgrade your own site - increment the script serial number "settings"->"user interface"->"skin media revision number", that should force the browsers to load new scripts.

This needs to be fixed for real of course by setting up a build process for the media and have script names change when they upgrade. Right now the pages load the original sources of javascript and css and the number in the URL parameter is incremented.

Evgeny's avatar
13.2k
Evgeny
updated 2010-11-08 14:19:58 -0500, answered 2010-11-08 11:08:25 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

Sheer stupidity on my part. It was all browser settings preventing the script from loading - different problems in FF and Chrome.

Sorry to waste your time.

I still have the problem that none of the authentication methods work.

graeme's avatar
319
graeme
updated 2010-11-08 20:44:55 -0500, answered 2010-11-08 20:43:42 -0500
edit flag offensive 0 remove flag delete link

Comments

is this a javascript issue or python? You can try setting DEBUG=True in settings.py. If I could see the error message, probably I'd suggest something. Btw, right now this site runs on the latest development version. I'll finish the twitter/facebook sharing buttons and make a new release, probably by Wednesday.
Evgeny's avatar Evgeny (2010-11-08 21:01:07 -0500) edit
Current issue is not javascript. Python or something in the config I would guess because it affects all login methods - its essentially similar problems to the authentication denied error I asked about in another question. Sharing buttons nice addition. Incidentally, responses button did not show up in my profile here today.
graeme's avatar graeme (2010-11-08 22:10:17 -0500) edit
Yes, I've changed the way "responses" works. It only lights up when there are new responses, and you can delete or mark seen/new any of the response "memos"
Evgeny's avatar Evgeny (2010-11-08 22:12:46 -0500) edit
In addition to DEBUG=True, it will be necessary to add IP address to the list of internal IP's in the settings.py
Evgeny's avatar Evgeny (2010-11-08 22:15:51 -0500) edit
maybe your settings.py does not have AUTHENTICATION_BACKENDS setting? It must contain 'askbot.deps.django_authopenid.backends.AuthBackend' in addition to any others that you might use.
Evgeny's avatar Evgeny (2010-11-08 22:19:47 -0500) edit
add a comment see more comments