HI,

The Facebook widget even though enabled and viewable in the source is not displaying on the page but the other widgets are ok.
Example page:

http://www.coolestguyplanet.net/downtown/install-and-configure-apache-my...

Any thoughts

Comments

samgreco’s picture

I just started seeing this as well. Worked previously.

iraszl’s picture

Priority: Normal » Major
StatusFileSize
new10.3 KB

I can confirm. Facebook isn't working. Perhaps Facebook changed something and it broke the widget?

mrfelton’s picture

Same for me

Sms2luv’s picture

Facebook not working

petkove’s picture

?locale= is a problem... probably just a temp fix:
includes/easy_social.widgets.inc - line 74 - //www.facebook.com/plugins/like.php?locale={$lang}&href CHANGE TO //www.facebook.com/plugins/like.php?href
--
http://eurobuecher.com

samgreco’s picture

That indeed fixes it.

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new1.27 KB

#5 as a patch.

Sms2luv’s picture

Please explain in detsil

Lula’s picture

Having the same issue with Facebook too, though the above suggestion/patch to fix it, sadly didn't make any difference. Spent a few hours looking into this and I still can't work out if its a problem with the Easy Social module or from facebook's end.
If I set facebook to be 'iframe' it will display, allow me to 'like' it, and even add to the counter. On page refresh it then vanishes. With HTML5 and XFBML nothing is displayed at all at any point.
I took some time to look at the facebook like button page (where you would create basic like button code), and experimented with putting different URLs in there. One thing I did notice is that once a page is 'liked' via Easy Social, the like box will not even appear on the facebook 'like box' page (as the demo for your code, if you put the same url in there).
However, like I say I still can't work out if this is a facebook or Easy Social issue. I feel more inclined to say it's a facebook thing, but any advice on how to fix this (at least for the HTML5 version of it) would be really appreciated.

iraszl’s picture

#5 fixes is temporarily, but the width of the Facebook button has changed, it now cuts of 48px. Where can we fix it to have it wider?

dgwebcreative’s picture

I can confirm this as well. Google and Twitter are working, Facebook is not showing up (though a space is left for it). Also the Facebook button is working when displayed in a block.

gowrann’s picture

The patch from #7 fixes it so it appears.

Then to fix the right hand edge clipping you need to edit the CSS file:

/sites/all/modules/easy_social/css/easy_social.css

and change the px dimensions on the last line to 55px:

.easy_social_box.vertical div.easy_social-widget.easy_social-widget-facebook {
  width: 55px;
}

Flush the cache and all is well

LTech’s picture

I've applied the patch but facebook still isn't showing.

eric.chenchao’s picture

StatusFileSize
new417 bytes

I found Facebook like box does not display when the language=en in the iframe request link caused by default language code 'en' generated when $lang = 'und'l passed by $node->language.

So the solution is simply change code in function _easy_social_facebook_langcodes

from

  return (isset($languages[$lang]))?$languages[$lang]:'en';

to

  return (isset($languages[$lang]))?$languages[$lang]:'en_US';
Sms2luv’s picture

I tried did not work

eric.chenchao’s picture

StatusFileSize
new9.45 KB

Please check the Facebook iframe request link, if there is lang=en (if so it does display properly) or lang=en_US

Facebook vertical like box

xurizaemon’s picture

StatusFileSize
new2.83 KB

Dropping lang= like #5 / #7 works fine for me. But I suspect the intended fix is in _easy_social_facebook_langcodes(), and maybe we should expect 'und' not 'en' as the site default?

Added 'und' to FB and Twitter langcoders tho Twitter was already displaying fine. G+ and LI don't langcode yet.

Sms2luv’s picture

It's working

plach’s picture

StatusFileSize
new779 bytes

I think the right fix here is making the fb widget follow the current page language, instead of following th enode language. This way the language on the label is consistent with the UI language.

xurizaemon’s picture

Plach - is that in addition to the fix in #17, which deals with LANG=und? Or instead of?

plach’s picture

It's instead: LANGUAGE_NONE (und) means there is no language specified, but we always have a language to rely on, which is the page language. IMO this would give us a more consistent beahvior: if I have a multilingual site with an untranslated node (say an english node) and I'm viewing it with a page language different from the node's one (say french), I expect to see the facebook label in french not in english.

If you wish to address the default langcode value, we should replace the hardcoded 'en' with language_default()->language, but IMO this is another issue.

ganagus’s picture

I found this issue in the view handler as well. I changed the source to obtain the language from $node->language to global $language->language and it is working fine in a single or multilingual installations.

jegan2668’s picture

Its working fine for me.

I used both patch #14 and #19

peximo’s picture

StatusFileSize
new1.52 KB

This patch should fix the same bug for the views field.

sanook17’s picture

Status: Needs review » Active

Still having this issue.... any module updates going to fix this?

xurizaemon’s picture

@sanook17, setting the issue from "needs review" to "active" moves it away from being resolved. That's not what you hoped to achieve.

(Please see Introduction to the Issue Queue which has two short videos introducing how things work, and/or Using the Issue Queue which has a more in-depth view of things. You'll find it much easier to get the results you want if you invest a few minutes to better understand the process.)

Irrespective of your level of familiarity, you can help get this issue fixed, and contribute to the Drupal community. Right now, the next step(s) to getting a fix in for this issue is to test and review the patch(es) posted (how?), and report back your results.

At the time of writing this, I'd recommend applying both patches from #19 and #24.

EDIT: Updated based on @eusonic's comment below.

eusonic’s picture

Status: Active » Needs review

Patch #24 worked for me. Tested on node and in views.

FYI, patch #24 includes the fix in patch #19, so it's the only one you need.

develcuy’s picture

Facebook is displaying in my site, I'm using 6.x-1.4

lnunesbr’s picture

Status: Needs review » Fixed

The patch #19 has been comitted, it's working like a charm. Thank u guys.

Status: Fixed » Closed (fixed)

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