I have a Facebook button on my site http://theganjagirls.com ... everything looks and works fine when I logged in to my Facebook account ... But when I logged in as a page administrator, the Facebook button is like a button , displays the "switch" link inside the large white box. I saw this happening on many large sites, so I know this is a problem with Facebook. I just went to teespring.com/ganjagirls and they cleverly make Facebook as a button just displayed: no, when you are logged in as the page administrator.
So my question is: how to make Facebook as a button display: no one, only if the viewer is registered on Facebook as the page administrator?
I tried to do it myself by tapping the Facebook code in the container and using some kind of JavaScript ... but I'm an amateur, and I could not get it to work correctly.
Here is what I got so far in CodePen: http://www.codepen.io/nouveau/pen/zfcLu .
source share