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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago
graeme's avatar
319
graeme
asked 14 years ago

Comments

could you try to catch the error message and post it?
Evgeny's avatar Evgeny (14 years ago)
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
link

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
graeme's avatar
319
graeme
updated 14 years ago, answered 14 years ago
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 (14 years ago)
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 (14 years ago)
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 (14 years ago)
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 (14 years ago)
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 (14 years ago)
see more comments