Active
Project:
Facebook Connect
Version:
6.x-2.0-beta1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2011 at 16:47 UTC
Updated:
23 Nov 2011 at 02:58 UTC
I have made the module work, i can see the fb connect button.
After i click, i get the facebook popup asking me for login, ok. I do login and the facebook popup do close, ok.
After the popup get closed im redirected to /fbconnect/register/prompt...where the node region is empty, i see an empty page.
I did setup the fb xmlsn like this
<html xmlns:fb="http://www.facebook.com/2008/fbml"
xmlns="http://www.w3.org/1999/xhtml"
xml:lang="<?php print $language->language ?>"
lang="<?php print $language->language ?>"
dir="<?php print $language->dir ?>">
and my page does have the print $closure at the very end.
Status report seems ok, dblog seems ok, apparently the module is enabled and working.
I am using facebook-php-sdk 2.1.1.
What could be causing this?
Comments
Comment #1
brazorf commentedI tried dig a little deeper into this.
The menu item fbconnect/register/prompt is handled by the function fbconnect_prompt_page, defined in fbconnect.pages.inc. This is a very simple function:
Now, what i see is that the $output array is empty, print_r($output) shows
Links are correctly set, so the issue is related to the theme('box') function. I've never used this theme hook, and i cant see any 'box' hook in the fbconnect_theme impl. Where should that be defined?
Comment #2
brazorf commentedOk, i found out that theme_box actually is a theme hook defined in includes/theme.inc
Function fbconnect_prompt_page is invoking this hook passing the $title, but not the $content. I tried
and it didnt work yet. Tried
and finally got my page display the output "test test". So this is what's happening.
I really cant figure out why i am the only one facing this issue. I will hack that part of fbconnect code, hoping someone can explain me this matter.
Comment #3
cogniven commentedI had a similar issue and probably most won't run into this. We had clean urls turned off so urls need "?q=" to work correctly. I modded the "$url= url('?q=fbconnect/register/prompt');" line in theme_fbconnect_login_button function to add the "?q=". This made it work for me. Not sure why drupal is not transforming the url correctly for clean or dirty urls...
Comment #4
brazorf commentedAs far as i know the url function is part of the abstraction layer from you and the menu routing system, so you should not use the "?q=", you should use the plain path. Anyway this seems like a different issue. Furthermore, im working with clean urls aswell.