Topic-icon Switch profile button hides site

Active Subscriptions:

None
11 years 2 months ago #31535 by paulvanharen
Dear Alex,

I noticed something akward. When I'm switched to one of my Facebook pages other than my personal page and then run into a webpage with a JFBC plug-in, the buttons of the plug-ins offer me to switch to my personal profile. However, these buttons also cover a large and sometimes huge portion of the page.

Please have a look at extensions.joomla.org. Below the login box, there is the opportunity to login using Facebook. In case I'm switched to one of my non-personal FB pages, the switch box has a normal size but a background color, in this case white, covers the second half of the site.

I've seen this phenomenon also on other sites using JFBC.

Please advise.

Best regards, Paul
The topic has been locked.
Active Subscriptions:

None
11 years 2 months ago #31536 by paulvanharen
I just noticed that on this particular forum, the switch profile button works as I expect it should. Hmmm, interesting.
The topic has been locked.
Support Specialist
11 years 2 months ago #31543 by alzander
The JED uses JFBConnect for their Login with Facebook button :)

The reason that happens is because of Facebook. "Pages" can't login to sites, Like content, and do many other 'social' activities that are meant for 'users'. So, when you're logged in as a Page, you'll see that "Switch" text prompting you to switch to a 'personal' Facebook account instead of a 'profile'.

On this site, you won't see that text because we're not using Facebook's Javascript button, we're using a custom image for the button instead... it just looks exactly the same as the Javascript button. You can use your own custom image as well by changing the "Facebook Login Button Type" setting in the SCLogin module to 'image' and then supplying a link to the image you want to use.

Just note, other features, like the "Like" button, must use the Javascript version, and so those will still show the "Switch profile" text (and sometimes the glitchy gigantic box you mentioned) if the user is logged in as a Page.

Hope that's not too confusing. If so, or you have any questions/comments, just let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 2 months ago #31547 by paulvanharen
Dear Alex,

I think by now I understand that I needed to switch. However, the issue is that the button/box offering me the opportunity to switch has a way to large background that covers the entire site. Please have a look at the attached screenshot. You can seen that everything below the top border of the JFBC login switch box is covered by some white. Please also note, that the righthand border is jugling. I would guess that the middle part of the site has an overlay with the width of the entire middle part and some offset, shifting it a little to the right.

I hope you can see the problem now.

Regards, Paul
The topic has been locked.
Support Specialist
11 years 2 months ago #31580 by alzander
Paul,
Gotcha. Yeah, that white box can be annoying. To my knowledge, that's caused by template styles that are being inadvertantly used by the Like button as well.

Can you post, or Private Message me, a link to a page with the Like button that goes wonky when you're logged in as a Page? Once I see the problem in action, I should be able to investigate pretty quickly what's wrong and how to fix.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 1 month ago #31996 by paulvanharen
Dear Alex,

Would you be so kind to check the webpage www.onshouten.nl/home? Other pages such as www.onshouten.nl/nieuws are more or less OK, but our home page really messes up, in case the user needs to switch FB profile.

Thanks and regards, Paul
The topic has been locked.
Support Specialist
11 years 1 month ago #32010 by alzander
Try adding the following to your CSS file and see if it helps:
.jfbclike {max-height: 20px;}

That should help, but may not fix everything... :)

Thanks,
Alex
The topic has been locked.