Closed (fixed)
Project:
Drupal for Facebook
Version:
5.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2008 at 04:26 UTC
Updated:
2 Jan 2009 at 23:50 UTC
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
Comment #1
Dave Cohen commentedAre 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.
Comment #2
vssaokar commentedDave,
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.
Comment #3
Dave Cohen commentedNo idea how you made that page. Doesn't look much like drupal to me. Are you using calls to url() or l()?
Comment #4
vssaokar commentedI 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?
Comment #5
vssaokar commentedThis 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!
Comment #6
vssaokar commentedFound 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.
Comment #7
Dave Cohen commentedGlad you figured it out.