Hi,

I upgraded from 2.x to 3.x and everything went fine. I did get the one known issue where Drupal was unable to update the app settings on Facebook, but I did that manually.

Now, when I visit my app on apps.facebook.com/srinikas, I get the following error:

Errors while loading page from application
Parse errors:

FBML Error (line 61): illegal tag "body" under "fb:canvas"

Runtime errors:

HTML error while rendering tag "script": App exceeded maximum number of script references

HTML error while rendering tag "script": App exceeded maximum number of script references

HTML error while rendering tag "script": App exceeded maximum number of script references

HTML error while rendering tag "script": App exceeded maximum number of script references

HTML error while rendering tag "script": App exceeded maximum number of script references

Please try again later. We appreciate your patience as the developers of srinikas and Facebook resolve this issue. Thanks!

The only place I had confusion was with the new facebook libraries. I wasnt sure which one to use from http://github.com/facebook/php-sdk/downloads, so I tried 2.0.3 and 2.0.4. Both result in the same error, so clearly that's not the issue.

Any thoughts on what I could do to fix this?

Thanks
Srini

Comments

srinikasturi’s picture

Status: Active » Closed (fixed)

sorry. understand the problem. need to switch to iframe canvas page, not fbml.

thanks
srini

srinikasturi’s picture

Status: Closed (fixed) » Active

Sorry, one question though - does this now mean I can use any theme? which one is the recommended theme, as I have a white screen when set to iframe mode using the fb fbml theme from 2.x. other themes (non fbml aware) render the first time, but break with form submits.

Thanks
Srini

srinikasturi’s picture

Priority: Normal » Critical

While this isn't critical in terms of my project, as I am trying this out on a test site, I've marked as critical as it prevents the module from delivering its core functionality.

Thanks
Srini

Dave Cohen’s picture

Component: Canvas Pages (FBML) » Canvas Pages (iframe)
Category: bug » support
Priority: Critical » Normal

Yes it's true that 3.x does not support FBML canvas pages (at least for now). Facebook no longer recommends using them.

For iframes, you can use any theme, but you should use a theme that is only 760 pixels wide. For now, Drupal for Facebook does not include an example theme. You have to build your own.

Your problem is that on the facebook side, you still have the app configured to be FBML. Edit your settings on facebook to tell it you are now using a iframe.

srinikasturi’s picture

Thank you, Dave. I tried a random theme and it worked.

I am in awe of your generosity to the community, and seriously recommend a tipjar or Paypal Donate button. This really is cutting edge work.

Thanks
Srini

srinikasturi’s picture

Dave, another quick question:

What does it mean when you say in the readme 'If you want to honor facebook controlled sessions, as opposed to drupal-controlled sessions'?

I don't understand what that means, and when I insert the $conf code in my settings.php, I get the white screen of death on canvas and website.

What am I missing in terms of functionality when I skip this step?

Thanks
Srini

Dave Cohen’s picture

Status: Active » Fixed

Usually, drupal sets a cookie and that determines the user's session. If you let fb_session.inc control it instead, the session will be controlled by facebook's cookie (Facebook Connect) or parameters sent to the iframe. You really should choose this, especially for canvas pages.

I assume this issue is resolved?

srinikasturi’s picture

Yes, thank you Dave

srinikasturi’s picture

I must admit it was quite silly of me to not have put the file in place before adding

$conf['session_inc'] = "profiles/custom/modules/fb/fb_session.inc";

to settings.php. That's what was causing the white screen of death.

Not handing over control to the FB cookie gave me an infinite redirect issue on the iphone. I thought it was a device issue until I put this in, and everything's fine.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Yorgg’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Status: Closed (fixed) » Active

Visiting the Canvas link in admin/structure/fb after the security warning I select continue then it goes to a white screen. (No errors)
I've set the secure url's to never use HTTPS ( since I don't have it on my development machine) and the theme to bartik, path to defaults or to a existing node/id. Every other settings are set to their defaults.

I tried to tackle the documentation page as explained for Drupal 6 using common sense.

Any idea? I will be happy to update/create documentation for 7.x-3.x branch

Thanks

Dave Cohen’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev
Status: Active » Fixed

@staminna, please submit a new issue for Drupal 7.x rather than resurrecting an issue that has been closed for years.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.