I have installed Fbconnect according to the install instruction, everything worked fine with the default theme of drupal and logintoboggan module. now when i changed my theme to I3Theme, downloaded from http://drupal-portugal.googlegroups.com/web/i3theme-classic-6.x-1.0.zip , the facbook connect module itself disappeared from the user login block. even added as directed. in IE7 an extra bulleted item is showing without any content, and in other browser like Chrome or Mozilla Firefox nothing at all is showing.
There might be something i missed, please point it out.
Thank You.

CommentFileSizeAuthor
#9 page_tpl_php.jpg224.52 KBEvangelo

Comments

physiotek’s picture

same here with beach theme.
any advices?
thanks

Anonymous’s picture

The fbconnect buttons have dissappeared for me as well, using Internet Explorer 7. No problems using Firefox, yet. Tried uploading the freshest scripts from facebook and flushing the cache. I don't know when this started as I've been unobservant of what goes on for IE for a while, but interestingly the mentioned current facebook svn scripts ar dated about the same as the original post.

It produces this for IE, verbatim, notice the missing img tag:

...
<div class="item-list"><ul><li class="first last"><fb:login-button onlogin="facebook_onlogin_ready();" size="medium" background="dark" length="long">
          </fb:login-button></li>
</ul></div>
...

No idea where to start looking...

bug is currently in the wild at: http://www.thepactproject.com/user

Sinan Erdem’s picture

In your site (http://www.thepactproject.com/user) I cannot see the button in Firefox also...

turadg’s picture

subscribe

konangenc’s picture

subscribe

+
(Unable to autoconfigure your application settings, make sure you are logged into Facebook)

turadg’s picture

Version 1.0beta8 contains this critical install instruction in README.txt:

7. Edit the "page.tpl.php" file of your current theme. edit the tag and add the facebook xmlns for rendering XFBML.
example : .

Anonymous’s picture

And so it works again! Tested on FF, IE, Chrome and Safari. Close the bug?

blooom’s picture

I solved this problem by adding "$closure" in page.tpl.php, I guess this is where the js function is applied.

print $closure

Evangelo’s picture

StatusFileSize
new224.52 KB

Hello, I'm having the same problem with the facebook connect not showing in IE7 or IE8 (fully updated). Firefox works great. I have followed the instructions in the README.TXT as well as the updated instructions:

"Run update.php.
Revalidate fbconnect settings (make sure you are logged into facebook)
Flush your cache"

But it's still not working.

My page.tpl.php is the attached screenshot for your review

I noticed that if I try to access a restricted page such as the admin page without being logged in, of-course I get the "You are not authorized to access this page." error, but then the Login appears correctly with the facebook connect button as it should be.

www.mysite.com/site - where it should appear correctly but does not

www.mysite.com/site/admin - where I get "You are not authorized to access this page." error but does appear correctly

Please help! Please advise if I am doing something wrong. I hope this helps in troubleshooting this problem.

Regards,
Evan

Evangelo’s picture

Ok, apparently the first page that loads does not use "page.tpl.php" because when I view the source I do not see "xmlns:fb="http://www.facebook.com/2008/fbml" in the html header tag so I started adding it to all the files that start with "page-xxx-xxx.php within my custom theme. I then cleared the cache and there it was! It worked. Now if you give this a try I suggest you backup your files first so you can always go back if you make a mistake or don't get the desired results.

Hope this helps someone!

Peace
Evan

fumbling’s picture

Thanks. I had the same experience. Apparently, if you have a template file to specifically control the /user page (such as page-user.tpl.php), then you will need to edit it instead of the more general page.tpl.php file.

skhot’s picture

Thanks. Very helpful, fumbling.

Do you or any know if the fbconnect module ($closure) needs to access facebook on every page, or just the user/login page? Are there any other pages that need fbconnect module's $closure arguments?

fumbling’s picture

Thanks. My best guess at this point is that it's just the /user page because that's the only page the fb button appears. I found I didn't need a fix on the general page.tpl.php file, or any other page, but I'll post here if I find anymore gaps.

erwinwolff’s picture

I hereby confirm that you have to use the closure tags. I had the same problem on http://www.our-software.com/user with Internet Explorer, but after adding $closure on the theme it magically reappeared.

If I were the developer I would put this in the README.TXT or other documentation.

dgtlmoon’s picture

I second this, i spend half a day comparing sites that worked to those that didnt.

even tho the drupal_add_js says it goes into the 'footer' you *still* need to make sure you are print $closure; in your theme for the JS hooks, this would save everyone some time if it went into the README.txt

moshebeeri’s picture

I had the same problem, and I had print $closure in my page.tpl.php
Coping the print $closure to be just after the body tag solved the problem for me.

vectoroc’s picture

Status: Needs work » Fixed

corrected readme.txt

Status: Fixed » Closed (fixed)

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

mrevd’s picture

Version: » 6.x-2.0-alpha2

i have both

 <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 the closure tag in all page templates, but still can't get the connect button to display anywhere.

nidhi jain’s picture

Title: Fbconnect is not showing in User login block or in any login page » <fb:login-button> Not visible in Internet Explorer Version 9(I9)
Status: Closed (fixed) » Needs work

hi
i m working on c#,.net web application using Facebook API for retrieving data from my own account.

For login in facebook I used .It is working fine in all browser except Internet Explorer Version 9(I9).
Is there any changes in api or we have to change the code of login button,

below is the code which i used.

var strApiKey = "My Api Key" ; FB.init(strApiKey, "xd_receiver.htm");

Please Help...Its Urgent

Thanks

vectoroc’s picture

Status: Needs work » Closed (fixed)

Do not reopen.
Your question is not related to fbconnect module.
Use facebook support forum to ask questions like this

Desi Raaj’s picture

adding the following in the begining of templete.php will also solve this problem

xmlns:fb="http://www.facebook.com/2008/fbml"