Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
I enabled this module, add contentype for like button (blog, and some others), but nothing is shown for me on the nodes.
Doesn't matter if the like button is in the node or in the links.
Here would be like button, but it isn't: http://www.somvprahe.sk/blog/truli/pravda
Are there any other necessary steps? There are no permissions for this module, so I am really lost why it doesn't work at all for me.
thanks
Igor
Comment | File | Size | Author |
---|---|---|---|
#53 | fb_social-n791228-52-d7.patch | 2.83 KB | DamienMcKenna |
Comments
Comment #1
igorik CreditAttribution: igorik commentedI found that problem is with IE 8. With Firefox it works nice.
Comment #2
chawl CreditAttribution: chawl commentedYou (in fact module) should include this code in page.tpl.php to work with IE. Do not remove other xml related things in html tag if exist, just add this two xmlns defs then.
Hope this solves.
Comment #3
HS CreditAttribution: HS commented+1
Comment #4
ferdi CreditAttribution: ferdi commented@chawl thanks for the tip. The module actually cant easily add that information in the page.tpl.php
Comment #5
chawl CreditAttribution: chawl commentedYes ferdi, sorry for the typo, I meant the documentation in fact. Tx for a great module btw.
Comment #6
igorik CreditAttribution: igorik commentedthanks chawl, now it works for me. But in IE 8 it is shown in the node before the content, and in the Firefox, it is show after the content. I suppose that in the Firefox it is right.
Any ideas why it is wrong in IE?
You can test it on the same url: http://www.somvprahe.sk/blog/truli/pravda
thanks
Igor
Comment #7
chawl CreditAttribution: chawl commentedBy the way, I think IEs are right for the first time in the history #792192: Like button shows up in a different place in IEs than others
Even a broken clock shows the right time twice a day. I think this is a JS issue that FB should fix.
Comment #8
ferdi CreditAttribution: ferdi commentedI hope this is fixed in the alpha4 release
Comment #9
vtsaran CreditAttribution: vtsaran commentedIs the documentation lacking or I am not doing something correctly? My "like" buttons do not show either in IE or Firefox. Here are the steps I took:
1. Installed and enabled the module(s).
2. Enter the application ID for my site, gotten from Facebook Developers site, Adjusted all the settings under "administer".
Still do not see any buttons on my site. I do see the fb:like tags in appropriate places though.
Where else should I look to troubleshoot?
The site is www.victortsaran.net.
Thanks,
Victor
Comment #10
chazz CreditAttribution: chazz commentedFor me like button doesn't work at all :( Everything is enabled
Comment #11
chazz CreditAttribution: chazz commentedTried to put this to contemplate:
print $node->content['fb_social_like_widget']['#value']
But still doesn't work, nothing to display...
Comment #12
chazz CreditAttribution: chazz commentedComment #13
ferdi CreditAttribution: ferdi commentedI'm guessing (from #804994: Can I get user email and password when "map account" is enable?) that you have enabled some other drupal modules that are using the old version of fb api. See http://drupal.org/node/784872#comment-2909838
Comment #14
egomac CreditAttribution: egomac commentedIf you are using drush to enable the module, you might want to look at the admin/build/modules page and you need to enable the other modules associated with the fb_social module. There are 3 other modules that needs to be enabled.
Comment #15
HS CreditAttribution: HS commentedDoes not work on Internet Explorer. Sorry I created a duplicate issue because the title on this issue is vague. Changed title as well :)
Comment #16
ferdi CreditAttribution: ferdi commentedPlease see the FAQ section in the front page of this project
Comment #17
liquidcms CreditAttribution: liquidcms commentedsorry to re-open but there is still an issue with this solution.
YES - adding this to the top of page.tpl
does allow the FB Like button to show in IE8 but it causes IE8 to popup a XSS warning.
Comment #18
Compel CreditAttribution: Compel commentedI don't get page errors.... or the LIKE button in IE8.
Everything is working in FF.
I tried the snipped versions in #2 and in #17 with no luck. I can understand how this might not be possible to address in the module itself, but if there is an undocumented fix it would be helpful to document it.
For purposes of testing, I am using 6.19 fb_social.info,v 1.3.2.1 2010/07/11
Comment #19
liquidcms CreditAttribution: liquidcms commentedmy issue with FB Like and XSS was caused by incompatibility with with this module and the FB Connect module. This issue has since been fixed (not sure of commit status) with an update to the FB Connect module.
not sure if you are seeing the same issue.
Comment #20
Compel CreditAttribution: Compel commentedNot using FB Connect.
Comment #21
Compel CreditAttribution: Compel commentedRe #20 This may sound obvious, but apparently wasn't to me: check user permissions. I was reminded of this as I run Admin in FireFox so I can see what's going on and Authenticated_User in EE. Authenticated_User didn't have permission set to access the Like button.
Comment #22
aken.niels@gmail.comFix #17 worked for me. Be sure you are adding it to your opening tag. I've just had some problems with getting this fix to work, but then I noticed I din't had have enough coffee, I'd added it to my DOCTYPE. Dow!
Comment #23
Marcus 78 CreditAttribution: Marcus 78 commentedWhen I use the
I get som problems with my cse search function in IE8.
When I push the search button i get the search resultpage for about 1 second then I´m redirected towards a wsod page. Checked the errors and its the following (not an exact copy but my translation so there might be some differenses)
Anyone who knows what this is all about
Comment #24
ferdi CreditAttribution: ferdi commentedNormally the like button shows on IE if the page template is modified similar to #2. Closing this ticket.
Comment #25
doublejosh CreditAttribution: doublejosh commentedNot showing for me either, but might be related to an undefined jQuery object caused by double loading all my js files via CTools AJAX. Arg!
Comment #26
krembo CreditAttribution: krembo commentedActually added the code to the html tags, but nothing works.
This is in html tag.
No permission problem, cause checking this under admin FF works, IE not.
Comment #27
anthonyR CreditAttribution: anthonyR commentedComment #2 fixed it for me.
Using Fb Social 6.x-1.0-beta5
Comment #28
Infinitee CreditAttribution: Infinitee commentedTry this (get instead of print!):
Comment #29
markconroy CreditAttribution: markconroy commentedI'm having a problem using this with an Artisteer generated theme. I'm not sure exactly what I should add and where. This:
looks a lot different to this:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
Here's the first 20 or so line of my code without adding anything.
So, how should my page.tpl.php code look AFTER I add the Facebook Social code?
Thanks in advance for your help.
Comment #30
markconroy CreditAttribution: markconroy commentedFixed it. It should look like this:
Comment #31
marc.groth CreditAttribution: marc.groth commentedNot sure if this will help anyone but I was also having issues with this even after trying all the suggested fixes.
The way I got it to work was to remove all print_r() debug code I had. The moment I removed it, it worked perfectly fine without any errors - in all browsers! Must be something to do with the headers being altered before output or something along those lines...
Anyway, hopefully this helps someone else out!
Comment #32
vlooivlerke CreditAttribution: vlooivlerke commentedMy like button and fb comments are not showing in ie7, It does work in ie8, FF and chrome
Comment #33
amandabutz CreditAttribution: amandabutz commentedWhat if the theme you're using doesn't have a page php file? How do you get the like buttons to show up with IE?
Comment #34
virtuali1151 CreditAttribution: virtuali1151 commentedI have tried the below with IE9 and nogo. I am using fb_social beta 8
Fixed.. had to turn off block caching.
Comment #35
TempusFugit CreditAttribution: TempusFugit commentedI have the same problem as #32: works fine in IE8, but doesn't show up in IE6 & IE7 (and in IE8 & IE9 compatibility modes)
Comment #36
vlooivlerke CreditAttribution: vlooivlerke commentedWorks fine in FF, Chrome IE8 but not in IE6 & 7 and Safari
IE7 Reports the problem lies here in the last line of this code
It is having problem with either the } or the ) in that last line
Comment #37
pedrobrito CreditAttribution: pedrobrito commentedSame as #33 here. I have a Zen sub-theme that doesn`t have the page.tpl file.
Where should I add the code then?
Comment #38
harris_david CreditAttribution: harris_david commentedI was able to make this work in ie 6 & 7 by removing a comma in the fb_social.module file. I removed the comma after the channelUrl line ;
$output .= "
window.fbAsyncInit = function() { FB.init({ appId: " . drupal_to_js($appid) . ", status: true, cookie: true, xfbml: true, channelUrl: " . drupal_to_js($channel_url) . " }); Once I did this, the buttons began appearing in 6 and 7 (I.E 8 was never a problem). I'm using Adobe Browser Labs for testing, so I can't speak to the Java errors.Comment #39
harris_david CreditAttribution: harris_david commentedAs for the Zen Sub-theme, you just need to copy the page.tpl.php file from the Zen Templates folder into the root of your sub-theme.
Zen >> Templates >> page.tpl.php
You may have to clear caches to recognize the new file. Also, clear caches after making changes to the page.tpl.php as well.
Comment #40
mcjim CreditAttribution: mcjim commentedWell spotted, harris_david. Looks like this has been committed to dev.
Can confirm the fix works.
Comment #41
ferdi CreditAttribution: ferdi commentedFixed in beta9
Comment #43
laraz CreditAttribution: laraz commented#34 fixed for me.
Comment #44
muhammad.tanweer CreditAttribution: muhammad.tanweer commentedThis works .. If not, may be you have to clear cache from drupal performance.
Muhammad
Comment #45
sammym CreditAttribution: sammym commented#34 fixed it for me as well
Comment #46
venusrising CreditAttribution: venusrising commentedNo longer working well in Firefox OR Chrome. Anyone have any ideas. Turning off block caching is not an option on a production site.
Comment #47
venusrising CreditAttribution: venusrising commentedSorry its Beta 9 issue
Comment #48
vlooivlerke CreditAttribution: vlooivlerke commentedI realised today that the facebook like and share button is missing in Chrome.
IE, Firefox works fine.
It used to work fine in Chrome.
Comment #49
vlooivlerke CreditAttribution: vlooivlerke commentedToday it is back working in chrome again. did not do anything nor cleared any cache.
Must be Facebook or Chrome doing some update.
Comment #50
DamienMcKennaYou should check how metatag does it:
Comment #51
DamienMcKennaSkip #50, it isn't needed with the current implementation that uses normal DIV tags.
Comment #52
DamienMcKennaWhat I've found to cause problems is loading the FB Javascript at the bottom of the page causes the button to not load on Firefox (confirmed in Firefox 8, possibly other versions too). Changing fb_social_page_alter() from:
to
makes it work. FYI the Facebook JS API documentation specifically states
Comment #53
DamienMcKennaThis patch introduces a new setting to control where the fb-init code is added. The new default is to load the code at the top of the page, with the setting allowing the current (incorrect) output to be done.
Comment #54
DamienMcKennaFYI someone will need to backport this to D6.
Comment #55
DamienMcKennaComment #56
ferdi CreditAttribution: ferdi commentedCommitted http://drupalcode.org/project/fb_social.git/commit/cd73e9b, thanks!
I dont know how this can be backported to D7 though.
Comment #57
DamienMcKennaGah, it isn't working for me now :-\
Comment #58
DamienMcKenna@ferdi: Sorry for changing the status.
Further research uncovered the fact that the themer on our site had munged up the CSS which was causing our problems with the block hiding. I think everyone should try testing the fblike button plain & without any CSS tweaks in all browsers before blaming the plugin.