Hello, for starters, I read the README.txt from start to finish.. and have checked the issue queue in entirety as well
I'm getting the error FBML Error (line 29): illegal tag "body" under "fb:canvas"
I understood this to mean that fb_fbml theme is not being detected... but it actually is. I enabled it in the admin/build/themes section and it is showing up as a separate theme in the admin/build/blocks section
I forced it to be the default theme for testing purposes and then, everything starts works fine but it breaks up my original website (obviously), so its not a route I can take. I enabled fb_devel and that indicated just one error related to "&". I fixed it but I guess it is unrelated to the theme not getting detected
Any idea what else I need to do? Maybe I am missing something simple here...
Comments
Comment #1
robertdouglass commentedSubscribe: FBML Error (line 46): illegal tag "body" under "fb:canvas"
Comment #2
robertdouglass commentedMaking the fb_fbml theme default did not alleviate the problem. I definitely don't have any modules that are initiating the theme layer prematurely.
Comment #3
robertdouglass commentedThe clues.
1. Submitting a form works fine. I'm building a search engine application and I get the initial screen (with the form), and I can get the form.
2. Here's a link that works:
3. Here's a link that breaks:
Comment #4
robertdouglass commentedMore clues.
This link doesn't work:
This link, without the _fb_fromhash param, DOES work.
http://devel.presto-sheet-music.com/fb_cb/1/sheetmusic/5854274/testInterestingly, these are both showing up in the canvas page.
The two links are being produced like this:
That's a bit hard to read, but the essence is that both go through l(), both with 'absolute' => TRUE. Why does one get the _fb_fromhash and the other one doesnt? And why is this _fb_fromhash screwing with the working of the code?
Comment #5
robertdouglass commentedPerhaps the final clues, and then a mystery.
My code, in both cases above, ends here:
It reaches this point, in both cases, with exactly the same value for $url. However, the variation with the _fb_fromhash fails (sends the output back to facebook as a broken canvas), and the version without the hash succeeds.
So the mystery is, why?
Comment #6
robertdouglass commentedForget everything I wrote. The error was mine. I was trying to go to an external link but was not using an absolute URL.
Comment #7
Dave Cohen commentedravdeepchawla, are you still having a problem, or was it the same site?
Robert, Let me know about your app when it is ready. I'm curious what you're up to with these modules.
Comment #8
robertdouglass commentedDave, sent you two mails using your contact form, without reply. Perhaps into the spam bucket? Please contact me via email. Thanks!
Comment #9
psi-borg commentedDave, wondering how the fb_fbml gets detected and if it's possible to create an option to detect any theme that's available in drupal and load it that isn't the default theme or the fb_fbml theme.
I ask this because the non-fb site was designed without consideration for fb canvas pages and fbml is not the way to go for this site... also, is it possible to have that theme load only content designated for the fb canvas?
Comment #10
Dave Cohen commentedYou can pick a theme for each application. Look under canvas settings when configuring the app.
I'm going to resolve this issue, since the original poster seems to have not returned.
Comment #12
bughouse commentedI am having a difficult time getting the canvas page and theme setup properly. When I visit the canvas page I get the following error:
http://apps.facebook.com/ilikethattwo/
FBML Error (line 27): illegal tag "body" under "fb:canvas"
I have the fbml theme installed and it is listed under blocks, my question is how do I assign this theme to the above url in the facebook settings for drupal and for facebook app settings.
@Dave Thanks this is a really cool module and I am looking forward to using it to create my first facebook application. THanks for the hard work on this module.
Where do I assign a theme to the drupla for facebook module. Is there a setting for this or am I missing something, doing something incorrectly in the why I have things configured?
Thanks!
Comment #13
Dave Cohen commentedRead the readme.txt.
On drupal.org, it's better to start a new issue than to comment on one that is "closed" as this is.