WebFaction
Community site: login faq

I installed OSQA at mydomain.com/ask using the Webfaction script, and then followed the osqa wiki to add the facebook login. (copied to external keys the api and app secret)

In the "testing" phase, when I try to add a new provider and get redirected to the login I receive the error:

The authentication with Facebook connect failed, cannot find
authentication tokens

When I inspect element with chrome I see the

Uncaught TypeError: Cannot call method
'get_session' of undefined (anonymous function)
/ask/account/signin/:244

Also, when using firebug I see,

TypeError: api is undefined
Reload the page to get source for: http://www.mydomain.com/ask/account/signin/

which upon reload leads me to

FB.init called with invalid parameters ..... en_US (line 62)
The "fb-root" div has not been created, auto-creating ..... en_US (line 64)
FB.init has already been called - this could indicate a problem ...en_US (line 62)

Has anybody had a similar problem with the OSQA facebook login? Any tips are appreciated.

asked 18 Oct '12, 06:53

alphydan
5257
accept rate: 0%


The facebookauth module supplied with the latest official OSQA release (v0.9.0 beta 3) is obsolete and does not work with Facebook's current API.

To fix it, you can replace that module with the one from a svn checkout of OSQA:

cd ~/webapps/your_app
svn co http://svn.osqa.net/svnroot/osqa/trunk
mv ./osqa/forum_modules/facebookauth ./facebookauth.old
cp -r ./trunk/forum_modules/facebookauth ./osqa/forum_modules/
./apache2/bin/restart

Hope that helps!

permanent link

answered 18 Oct '12, 13:47

seanf
12.2k42136
accept rate: 37%

edited 18 Oct '12, 13:54

This works for me.

(26 Mar '13, 12:30) Romel
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×108
×75
×43
×40
×4

question asked: 18 Oct '12, 06:53

question was seen: 11,939 times

last updated: 26 Mar '13, 12:30

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM