Canvas name (app name) is missing from the links generated by DFB.

For example,
my app is at,
http://apps.facebook.com/myapp

and the links generated by DFB are,
http://apps.facebook.com/fb_cb/241/movies/240
instead of
http://apps.facebook.com/myapp/fb_cb/241/movies/240

"myapp" is missing from the generated URLS.

I have the canvas URL correctly set to "myapp".

Any ideas?

Comments

Dave Cohen’s picture

Status: Active » Postponed (maintainer needs more info)

Are you using iframe or FBML canvas pages? which theme?

The links should be http://apps.facebook.com/myapp/movies/240. Urls with /fb_cb/241 in them are for facebook callbacks only. So you will see fb_cb/NNN in the Facebook App Settings form, but end users should never see a url with fb_cb/NNN in it.

vssaokar’s picture

Dave,
I use FBML as the render method. and the theme is fb_fbml.

Here's my app,
http://apps.facebook.com/desitrack/

As you can see the links generated dont have desitrack in them.

Dave Cohen’s picture

No idea how you made that page. Doesn't look much like drupal to me. Are you using calls to url() or l()?

vssaokar’s picture

I am not using url or l. just using the fb module as is. Configuration changes made as suggested in README.txt

I put the callback url in facebook as suggested by DFB. for e.g,

Callback URL
http://9a0440c5.fb.joyent.us/fb_cb/241/
(or http://9a0440c5.fb.joyent.us/fb_cb/241/fb_cb_type/PAGE_TYPE/ only if your theme is designed to support PAGE_TYPE.)
Make sure you have enabled clean URLs, and include the trailing '/'.

I do have clean URLs enabled.

Does enabling "URL aliases" cause any issues?

vssaokar’s picture

This is what the log says on facebook page,

Facebook Devel Canvas Page
Page Status = Not a canvas page.
local user = Anonymous
fb_get_fbu =
base_url = http://9a0440c5.fb.joyent.us
base_path = /
url() returns = /
session_id = fb_241_2.JiIOo56e_DfrHB_gW4kpXw__.86400.1229799600-691196253
session_name = fb241SESSe8ba36007399a8271bde2f3d7ba8c596
request
fb_app
session = Array
cookies

please help!

vssaokar’s picture

Found the problem. path to facebook.php was wrong in settings.php.

$conf['fb_api_file'] = 'modules/fb/facebook-platform/client/facebook.php';

Sorry for wasting your time.

Dave Cohen’s picture

Status: Postponed (maintainer needs more info) » Fixed

Glad you figured it out.

Status: Fixed » Closed (fixed)

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