I am getting the error:

fbconnect_autoconnect_form_submit has been called without valid facebook session. Check your Application Secret on fbconnect settings page

However, my secret is 100% right. Must the secret not perhaps be the API key? Or must you "wait" for Facebook to enable the app?

CommentFileSizeAuthor
#7 error_app_settings.jpg119.65 KBbreitner
#7 error_on_post.jpg67.47 KBbreitner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vectoroc’s picture

Category: bug » support

try last dev from github. also look at readme.txt (in last dev)

coderama’s picture

Category: support » bug

Github? Where exactly? Can you please provide a link?

coderama’s picture

Ok, I saw this is what you are referring to: https://github.com/vectoroc/fbconnect

coderama’s picture

It still doesn't work. I set my application secret and ID correctly, yet I still get:

fbconnect_autoconnect_form_submit has been called without valid facebook session. Check your Application Secret on fbconnect settings page

I detailed my issue on StackOverflow here: http://stackoverflow.com/questions/4989924/fbconnect-on-drupal-not-working

breitner’s picture

Same problem. The dev-module does not work.

Error:
* Exception thrown while using admin_setAppProperties : The method you are calling must be called with an app secret signed session
* Checking your facebook session, you are not allowed to change this application settings

coderama’s picture

How did you get that error? Does it show up in Watchdog?

breitner’s picture

FileSize
67.47 KB
119.65 KB

The error is on the "Facebook Connect" -> "App Setting" page.
And if I post an new node there is an other error.

coderama’s picture

This doesn't seem like it's the same error I am getting. :-/

breitner’s picture

OK, but it is from the latest dev-version from http://github.org/vectoroc/fbconnect.

coderama’s picture

I am also using that version. And I don't get that error. I am using that version with the latest facebook sdk. It only bails when someone clicks on the fbconnect icon. It tries to connect, can't, and displays:

fbconnect_autoconnect_form_submit has been called without valid facebook session. Check your Application Secret on fbconnect settings page

Is anyone even using this module on a live site?!

vectoroc’s picture

@breitner: afaik, readme says that you should'nt use App Settings tab unless you understand what you're doing
@ardi: also

try to disable other facebook* modules
look at admin/reports/status page
show your facebook settings (from facebook.com app settings tab, I don't need your secret key)

read carefully README from last dev (especially FAQ section)

coderama’s picture

Thanks Vecto Roc. I did everything. I promise you I followed the instructions EXACTLY. I got no errors in status report and values are entered EXACTLY. I honestly can't see how anyone has been able to make this code work?

Can you perhaps tell me if this module will work on my local machine? or does it HAVE to be on a live site?

coderama’s picture

Thanks to the stack overflow post, a user has made it pretty clear that it won't work unless Facebook can access your site from the net. So a local machine setup WONT work. This should confirm it: http://drupal.org/node/949248

I will confirm it after I've tested it. *cross fingers*

coderama’s picture

I can officially confirm that that is in fact the issue. You can't use localhost without something like Dynahost.

vectoroc’s picture

ardi: it works on my local site (or at least worked, may be the facebook has changed something). I use it on localhost. What do I do wrong ?

also, no familiarity pls

vectoroc’s picture

afair facebook does not allow to use localhost as domain in app settings tab
I use domain mylocalsite.loc instead (and one record in my /etc/hosts 127.0.0.1 mylocalsite.loc)

e5sego’s picture

Possible solution:

I had the same problem, but just on Firefox 3.6.13 with CookiePie extension. After deinstalling ths CookiePie it works fine.

vectoroc’s picture

Status: Active » Closed (cannot reproduce)
Desi Raaj’s picture

I had the same problem, i solved my problem by editing my facebook application
go to ur fb application, click on edit settings, advanced, and clear out anything in the server whilelist and set everything else to default if u changed it in the advanced settings.

venusrising’s picture

Any for anyone using Mobile Tools and Mobile Connect you must add the base URL to the application before it will save in the Admin Drupal settings without throwing an error.

krneely’s picture

I am having the same issue with the error log saying the Secret is wrong. I don't have anything in the whitelist, and I didn't change any advanced settings.

When I check /facebook-php-sdk/src/facebook.php I get a blank white page. Could this be the problem? Thanks!

Jerimee’s picture

I am working with krneely on this. The issue was, in our case, that we had a trailing space in our Application Secret - so the password was just wrong.

Once we removed the trailing space we began to get some functionality.

Our current configuration doesn't allow for user to actually login or finish the registration via facebook connect, but, if you users attempt to register with facebook connect and manually complete the registration form the resulting created user will be associated with facebook, and from there they will be able to login via facebook.

We hope to adjust the configuration to improve upon this.