Some links go to my website instead of canvas page

I'm having trouble keeping my canvas page from "escaping" to my website.

For example, when looking at a list of node teasers on the canvas page, if you click the node title or "Read More", it stays on the canvas page and loads the full node. But if you click on any links I added to the body of my node...for example an image that links to "/node/37", then when clicking on that link on the canvase page, it leaves facebook and takes you to that node on my website.

What do you suppose I could do to change this? I would like the option of having some links go to my website but most links staying in the canvas page.

Example at:

http://apps.facebook.com/mattsgallery/category/all-wall-art?_fb_fromhash...

Links in node bodies are

Links in node bodies are tricky. If you generate a link using drupal's l() function, then drupalfor facebook will do the right thing. For example, if you use the PHP input filter and actually embed PHP to generate the link, it should work.

If you hardwire a link in your node, there's no way for the modules to know whether you really want to link out to your website or not. You can hardwire the url of the canvas page if you want the link to always lead there.

Sometimes I feel like Drupal

Sometimes I feel like Drupal is the Wild West of cms development. I got my problem fixed (by modifying the Path Filter module)...but I am just wondering about what someone said about the fb_fbml theme. My canvas page is working good now. Is Facebook planning to do something that will break my app because I'm using the fb_fbml theme?

It's facebook that is the

It's facebook that is the wild west of app development. You can rest assured they will find a way to break your app eventually.

http://developers.facebook.com/roadmap

FBML canvas pages still work, but facebook recommends all new apps use iframes.

Thanks. That at least gives

Thanks. That at least gives me a trail to follow. Using the l() function for image links is cumbersome on a daily basis. I am looking for a module to help. The Path Filter and Pathologic modules don't seem to help out with the problem posted above. Pathologic does make the link relative, but neither it nor Path Filter seem to use l() internally because I still get links back to my website on my canvas page.

Do you know of any modules that might help?

what theme are you using?

what theme are you using?

I am using the theme that

I am using the theme that came with the DFF module - fb_fbml

as far as I know the fb_fbml

as far as I know the fb_fbml theme is no longer supported by FaceBook and FB Drupal..

The 2.x branch includes an

The 2.x branch includes an FBML theme.

The 3.x branch no longer includes such a theme. Facebook has deprecated FBML, in favor of iframe canvas pages. That challenge to theming an iframe is really no different than theming a website. It just has to fit 760 pixels.

For new apps, I recommend iframes, as facebook has deprecated FBML.

theme

What theme are you using on your iframe pages?

I can't share the theme used

I can't share the theme used on http://apps.facebook.com/drupalforfacebook because its under development for another site (soon to be public).

But developing a drupal theme for iframe canvas pages is no different than developing a theme for regular web web pages. The important thing to be aware of is the pages are only 760 pixels wide.

I am using the theme that is

I am using the theme that is included in DFF module version 6.x-2.0-rc2 dated May 13 2010 on drupal.org. Is the module no longer supported by Facebook and hasn't been updated as such on the project page at drupal.org?