dave, i named an fb app the same as the virtual root directory of drupal and received a message to the effect that it "wasn't supported" - what happens when the base url is the same as the fb app name? btw, i'm going with flex+drupal services - finally getting them to play nice together. hope fb_fbml doesn't make amfphp go bye bye.

Comments

Dave Cohen’s picture

Yeah, unfortunately theres some crazy code that will run into problems when the base_url is the same as the app name. Just don't do it! If memory serves, its because of some special string replacement that fixes links on canvas pages. And this restriction can be removed in D7 when there is a url_alter hook. In the meantime its one of those things to live with. Sorry.

Dave Cohen’s picture

Status: Active » Postponed
thedavidmeister’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Component: Canvas Pages » Code
Status: Postponed » Active

Was this eventually fixed in the 7.x branches?

Dave Cohen’s picture

Component: Code » Canvas Pages (iframe)

This may still be a problem. On canvas pages it uses regular expressions to change some links so they go to apps.facebook.com/yourcanvaspage instead of relative links.

fb_canvas does implement a url alter hook that should take care of most links created by l() or url(). However I have not tested this particular case.