Until, I swapped over to Safari to check out all the changes I had made that day. On Safari, the like box wasn’t there.
Where had it gone?
I changed the URL for my Facebook page in the code from https://www.facebook.com/taskforcedigital to http://www.facebook.com/taskforcedigital. The like box still didn’t display.
Finally, after a bit of Googling and reading through comments on forums and blogs, I worked out why.
It’s not me, it’s Facebook
The fact that the client’s like box had disappeared was nothing to do with my code, but rather how they had changed the settings for their Facebook page. As I’m not an administrator of their page, I’ve replicated the issue with the Taskforce Digital Facebook page below.
What had happened was that, when I set up the Facebook like box and tested it on the page, I was logged into Facebook in another tab of Chrome (this is not unusual). The Facebook like box appeared on the page as it should.
However, when I tested it on Safari, I wasn’t logged into Facebook on that browser – and that’s what made the difference.
Eventually I worked out that this was because of settings for the page on Facebook. In the Facebook page Admin Panel, you can click on ‘Edit page’ then ‘Edit settings’. Halfway down, you’ll see ‘Country restrictions’ and ‘Age restrictions’. In setting up the Taskforce Digital like box today, I tried setting these restrictions one at a time.
It seems that the Facebook like box is accesses these settings and comparing them with your Facebook account settings. When I was logged on, I could see the like box (on any browser I tried). However, when I wasn’t logged into Facebook, Facebook didn’t know that I was over 17 and the box didn’t appear. It wasn’t even using my IP address to guess that I was from the UK. It just wasn’t showing the box.
Remove the restrictions on Facebook, the box on my website reappears – even when I’m not logged into Facebook.
Anyway, hope this helps someone else out there. Perhaps it may even save you some time in trying to find a coding solution for the issue.
I’ve taken the Facebook like box off our sidebar for now, but if you do want to like Taskforce Digital, you can do so on our Facebook page.