Hi,

I think I've got everything installed correctly however, on my canvas page in FB, when I try to post a comment or blog entry, I get this red box error "Validation error, please try again. If this error persists, please contact the site administrator."

I'm using a fresh install of Drupal 5.8, no other modules then yours + Token, Views, and Actions.
http://socialnmashup.com/
http://apps.facebook.com/socialnmashup/

So far, this is the only hiccup I have yet to get past.

I have not yet tried to get interaction with the mini feed and profile working yet.

I have a feeling this is a silly mistake I've made, hopefully someone else has solved this and now it can be documented for others.

thanks for this awesome module. I'll be watching our progress and will be eager to help when or if I can! (voted for you at groups.drupal.org)

Comments

Dave Cohen’s picture

Status: Active » Postponed (maintainer needs more info)

When you get the error, have you added the app? Logged into it?

Enable the devel and fb_devel modules. Grant permission to all users to see devel content. Add the fb_devel block to the canvas footer of the fb_fbml theme. Reproduce the error, then copy and paste the content of that block here. (omit your app secret key).

I've seen this and it had to do with session management and form ids. I thought it was fixed. Drupal 5.8 may have changed something, I have not tried it yet.

scothiam’s picture

Thanks for the quick reply, installing devel and fb_devel now. Also, just logged into my fb canvas page from home and have recieved these two errors (instead of the one mentioned earlier)

"fb_app id (1) does not equal fb settings id (). This is usually caused by the wrong callback url on your facebook application settings form."
and
"Drupal for Facebook is unable to override the theme settings. This is usually because some module causes theme_init() to be invoked before fb_init(). See the README.txt."

I'll try to get to the bottom of those (as they may be the whole problem) and get the devel data for you as well.

THanks again,

scothiam’s picture

content views fine, btw, logged into facebook or not,

Here's my info: logged into face book with app added,
App settings:
http://apps.facebook.com/socialnmashup/
-Can your app be added.. "yes"
-Who can add... Checked=Users, All Pages
-Developer mode (not checked)
-Private install (not checked)

Facebook Devel Canvas Page
Page Status = Rendering FBML canvas page.
fb_facebook_user = 711762428
local user = 711762428-socia...
fb_get_fbu =
base_url = http://www.socialnmashup.com
base_path = /
url() returns = /

Drupal Settings:
Allow anyone (true)
If user has added this app (true)
Map account when user logs in or registers (true)
user type = app-user
Make Local Account Unique (false)
I tried "0" for logged in and not logged in users with no change from leaving those fields blank...leaving them at "0" each...

Disabled all but core modules and the following:
-Drupal for Facebook Development and Debugging
-Facebook API
-Facebook Application
-Facebook Application Canvas Pages
-Facebook User Management

I'm unable to recreate the errors I first reported, I've tried in Mac Os 10.5 Safari 3 and Firefox 3, and Windows XP pro IE 7.

There is nothing crucial on this site/app, completely for testing out your module. Will hose and reinstall from scratch once this is trouble shot, or if you request.
Cheers,

Dave Cohen’s picture

I have a feeling this is a silly mistake I've made

Before I look into that debug output. View your Facebook Application node. It will suggest to you a callback URL. Use that callback in the facebook settings form. Don't make up your own callback url. (This is why you see "fb_app id (1) does not equal fb settings id ()")

Drupal for Facebook is unable to override the theme settings.

This usually leads to problems with FBML which you don't seem to have. Still its worth fixing. See the README.

scothiam’s picture

It was the callback URL, that fixed it! I was waiting for a slap-my-forhead-moment, :)

Errors are gone, and I am able to add comments to articles via the facebook canvas page!

I'm having a celebratory beer, I owe you one. thank you so much!

scothiam’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)