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.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | page_tpl_php.jpg | 224.52 KB | Evangelo |
Comments
Comment #1
physiotek commentedsame here with beach theme.
any advices?
thanks
Comment #2
Anonymous (not verified) commentedThe 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:
No idea where to start looking...
bug is currently in the wild at: http://www.thepactproject.com/user
Comment #3
Sinan Erdem commentedIn your site (http://www.thepactproject.com/user) I cannot see the button in Firefox also...
Comment #4
turadg commentedsubscribe
Comment #5
konangenc commentedsubscribe
+
(Unable to autoconfigure your application settings, make sure you are logged into Facebook)
Comment #6
turadg commentedVersion 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 : .
Comment #7
Anonymous (not verified) commentedAnd so it works again! Tested on FF, IE, Chrome and Safari. Close the bug?
Comment #8
blooom commentedI solved this problem by adding "$closure" in page.tpl.php, I guess this is where the js function is applied.
print $closureComment #9
Evangelo commentedHello, 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
Comment #10
Evangelo commentedOk, 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
Comment #11
fumbling commentedThanks. 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.
Comment #12
skhot commentedThanks. 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?
Comment #13
fumbling commentedThanks. 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.
Comment #14
erwinwolff commentedI 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.
Comment #15
dgtlmoon commentedI 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.txtComment #16
moshebeeri commentedI had the same problem, and I had
print $closurein my page.tpl.phpCoping the
print $closureto be just after the body tag solved the problem for me.Comment #17
vectoroc commentedcorrected readme.txt
Comment #19
mrevd commentedi have both
and the closure tag in all page templates, but still can't get the connect button to display anywhere.
Comment #20
nidhi jain commentedhi
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
Comment #21
vectoroc commentedDo not reopen.
Your question is not related to fbconnect module.
Use facebook support forum to ask questions like this
Comment #22
Desi Raaj commentedadding the following in the begining of templete.php will also solve this problem
xmlns:fb="http://www.facebook.com/2008/fbml"