Jump to:
| Project: | Drupal for Facebook |
| Version: | 6.x-3.x-dev |
| Component: | Canvas Pages |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
Subscribe: FBML Error (line 46): illegal tag "body" under "fb:canvas"
#2
Making the fb_fbml theme default did not alleviate the problem. I definitely don't have any modules that are initiating the theme layer prematurely.
#3
The 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:
http://apps.facebook.com/sheet-music-devel/search/sheetmusic/test?filters=instrumentation%3ABass&_fb_fromhash=877cb895801c9bf9e7b60ea057e8939c3. Here's a link that breaks:
http://apps.facebook.com/sheet-music-devel/sheetmusic/5854274/test?_fb_fromhash=877cb895801c9bf9e7b60ea057e8939c#4
More clues.
This link doesn't work:
http://apps.facebook.com/sheet-music-devel/sheetmusic/5854274/test?_fb_fromhash=877cb895801c9bf9e7b60ea057e8939cThis 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:
<?php$v['link'] = l($v['title'], $v['url'], array('absolute' => TRUE));
if ($v['imageurl']) {
$v['image'] = l(
theme('image', $v['imageurl'], $v['title'], $v['title'], array('align' => 'left', 'style' => 'padding-right: 1.5em;'), FALSE),
'sheetmusic/' . $v['id'] . '/' . search_get_keys(),
array('absolute' => TRUE, 'html' => TRUE,)
);
}
?>
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?
#5
Perhaps the final clues, and then a mystery.
My code, in both cases above, ends here:
<?phpheader("Location: $url") ;
exit();
?>
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?
#6
Forget everything I wrote. The error was mine. I was trying to go to an external link but was not using an absolute URL.
#7
ravdeepchawla, 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.
#8
Dave, sent you two mails using your contact form, without reply. Perhaps into the spam bucket? Please contact me via email. Thanks!
#9
Dave, 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?
#10
You 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.
#11
Automatically closed -- issue fixed for 2 weeks with no activity.
#12
I 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!
#13
Read 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.