I have
1. Read modules/fb/README.txt in its entirety.
2. Read the Drupal for Facebook documentation here on drupal.org.
3. Enabled the Drupal for Facebook Devel module.
4. not the Global Redirect module in my configuration
5. Reproduced my problem one more time.
6. Looked for any message the Drupal for Facebook Devel module may have written to the Drupal log.
I have a canvas of my Drupal home page perfectly rendered on Facebook
via Callback URL but all other nodes of my site are unachievable (even
if there are canvas on "http://apps.facebook.com/myapp/node/NNN"). All
links shown in http://apps.facebook.com/myapp front page link back to
original nodes in Drupal.
Facebook Devel Info
Page Status = Connected via Facebook Connect
fb_facebook_user =
fb_api_check_session() = Returned FALSE
local user = Anonimo
fb_get_fbu =
base_url = http://articoliamo.net/chimica
base_path = /chimica/
url() returns = /chimica/it
$_REQUEST[q] is =
arg(0) is = frontpage
arg(1) is =
session_id = 043e72bc2337a824a4453b2d1b83c08d
session_name = SESS6189a02bee87468a1ca26fe9e0757e4c
request = Array
I need help to understand what is wrong, thank's. Romina
Comments
Comment #1
Dave Cohen commentedWhat is the callback URL?
Comment #2
romina commentedHi!
You suggested me:
http://articoliamo.net/chimica/fb_cb/365/
I have also adjusted module weights so that i18n comes after the fb modules.
Does this help? Romina
Comment #3
romina commentedI am not able to interpret devel logs. When I save my application I receive this log:
....
.....
1
fb_app_update
UPDATE fb_app SET label='chimicamici', apikey='b639ea8f6a79212c4b325bbccc92f387', secret='cb1ea#######da4a48aca2', id='166516367890', canvas='chimicamici', data='a:7:{s:6:\"fb_app\";a:1:{s:13:\"set_app_props\";i:0;}s:11:\"fb_infinite\";a:2:{s:3:\"fbu\";s:15:\"100000440043195\";s:3:\"key\";s:40:\"a6a5e746f402559990de02f1-100000440043195\";}s:13:\"fb_permission\";a:2:{s:3:\"map\";a:10:{s:5:\"email\";s:5:\"email\";s:14:\"offline_access\";s:14:\"offline_access\";s:13:\"status_update\";s:13:\"status_update\";s:11:\"read_stream\";s:11:\"read_stream\";s:14:\"publish_stream\";s:14:\"publish_stream\";s:12:\"photo_upload\";i:0;s:14:\"create_listing\";i:0;s:12:\"create_event\";i:0;s:10:\"rsvp_event\";i:0;s:3:\"sms\";i:0;}s:6:\"prompt\";a:10:{s:14:\"offline_access\";s:14:\"offline_access\";s:13:\"status_update\";s:13:\"status_update\";s:5:\"email\";i:0;s:12:\"photo_upload\";i:0;s:14:\"create_listing\";i:0;s:12:\"create_event\";i:0;s:10:\"rsvp_event\";i:0;s:3:\"sms\";i:0;s:11:\"read_stream\";i:0;s:14:\"publish_stream\";i:0;}}s:11:\"fb_register\";a:1:{s:14:\"register_users\";i:0;}s:9:\"fb_canvas\";a:6:{s:13:\"require_login\";s:1:\"1\";s:15:\"front_anonymous\";s:0:\"\";s:14:\"front_loggedin\";s:0:\"\";s:11:\"front_added\";s:0:\"\";s:10:\"theme_fbml\";s:7:\"fb_fbml\";s:12:\"theme_iframe\";s:7:\"fb_fbml\";}s:10:\"fb_connect\";a:1:{s:7:\"primary\";i:0;}s:7:\"fb_user\";a:6:{s:14:\"create_account\";s:1:\"2\";s:11:\"map_account\";s:1:\"2\";s:14:\"unique_account\";i:0;s:12:\"new_user_rid\";s:1:\"2\";s:17:\"not_logged_in_uid\";s:1:\"0\";s:13:\"logged_in_uid\";s:1:\"0\";}}' WHERE nid=365
etc...
Also, in canvas front page I have:
Facebook Devel Info
Page Status = Rendering FBML canvas page.
fb_facebook_user =
fb_api_check_session() = Returned FALSE
local user = Anonimo
fb_get_fbu =
base_url = http://articoliamo.net/chimica
base_path = /chimica/
url() returns = /chimica/it/fb_cb/365/
$_REQUEST[q] is = fb_cb/365/
arg(0) is = frontpage
arg(1) is =
session_id = 9abbef8625de11577d547c166ad29a0d
session_name = fb_canvas_365_SESS6189a02bee87468a1ca26fe9e0757e4c
Is there something wrong?
Romina
Comment #4
Dave Cohen commentedI think, based on this line:
That i18n and fb are still conflicting. That value should be /chimica/fb_cb/365/ or possibly /chimica/fb_cb/365/it/.
I don't have i18n installed on my fb apps, so I've never had to solve this exact problem. But I'm pretty convinced that getting the module weights right, or failing that writing custom url rewrtite functions, and flushing all caches etc should solve this problem.
Comment #5
romina commentedYou are right!
Getting the i18 module weights lower than fb doesn't work but if I go to "admin/settings/language/edit" and (it is possible only for the default language) I leave path prefix blank, I have no more /it prefix and your module works perfectly. Thank you Dave!
Romina