Closed (fixed)
Project:
Drupal for Facebook
Version:
7.x-3.x-dev
Component:
Facebook Connect
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Sep 2011 at 03:13 UTC
Updated:
4 Jan 2014 at 01:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tpainton commentedMessing around with this.. If I simply add a
print $buttonto theme_fb_login_button() I get a very pretty button printed at the top left corner of my page.. It works as well. There is no duplication.. Still trying to figure this out.. Should be added as well that another issue has this as a problem, so it's not my page alone.Comment #2
Macronomicus commentedyes I noticed this too in the latest 7.x dev but hit some other roadblocks before investigating why the button looked off... seems there are some updates coming soon with several patches and the looming 3.0 deadline
Comment #3
tpainton commentedI solved it.. Facebook made a change I think..
http://developers.facebook.com/docs/reference/plugins/login/
Notice that there are two ways to add a button.. One uses FBML the other you simply assign a class of, "fb-login-button"... It appears that the wrapper class for the layout of the button in fp_user.module, line 553 ALSO use this same exact class.. THEREFORE the button is being called from facebook twice.
If you simply change the class on line 553 to , "fb-login-button-wrapper", it solves the problem.
So, I would propose a test of this.. seems simple enough, and there is no CSS to change..
I think this is a fix.
Comment #4
spesso commented+1 for me... worked great! Also HTML5 implementation of the button, instead of FBL one, still works.
Comment #5
jolidog commentedHere is the patch...
Comment #6
Dave Cohen commentedI'm going to change the class to something that does not start with "fb-", because clearly facebook considers anything that starts with that to be theirs. Maybe "fb_user-login-button" or "fb_user-login-button-wrapper". Any preference?
Comment #7
Dave Cohen commentedtagging to make sure it gets fixed.
Comment #8
Dave Cohen commentedI changed it to "fb_user-login-button-wrapper". Committed to D6, still need to do on D7.
I just want to say thanks. Although someone brought it to my attention that class=fb-login-button started doing weird things, no one bothered to point out that modules/fb was the culprit, until now.
Comment #9
Dave Cohen commentedShould be fixed in dev releases. Please let me know if not.
Comment #10
tpainton commentedNP!, Thanks for an amazing module.
Comment #11
amolinari commentedsorry but where is 6.x branch :-) we are planning to release a site today and it disappeared (yesterday it was there!) please con you help me solving this ?
Comment #12
Dave Cohen commentedLinks are back. Upgrade to 3.1 when you have a chance.