Ask Your Question
1

Facebook login javascript error

asked 2010-11-08 01:50:03 -0600

graeme gravatar image

updated 2010-11-10 11:52:38 -0600

Evgeny gravatar image

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.

edit retag flag offensive close merge delete

Comments

could you try to catch the error message and post it?
Evgeny gravatar imageEvgeny ( 2010-11-08 11:12:14 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2010-11-08 11:08:25 -0600

Evgeny gravatar image

updated 2010-11-08 14:19:58 -0600

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.

edit flag offensive delete link more
0

answered 2010-11-08 20:43:42 -0600

graeme gravatar image

updated 2010-11-08 20:44:55 -0600

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.

edit flag offensive delete link more

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 gravatar imageEvgeny ( 2010-11-08 21:01:07 -0600 )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 gravatar imagegraeme ( 2010-11-08 22:10:17 -0600 )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 gravatar imageEvgeny ( 2010-11-08 22:12:46 -0600 )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 gravatar imageEvgeny ( 2010-11-08 22:15:51 -0600 )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 gravatar imageEvgeny ( 2010-11-08 22:19:47 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2010-11-08 01:50:03 -0600

Seen: 384 times

Last updated: Nov 10 '10