Just started a WordPress website? Embed Facebook on it!
Creating a Facebook page widget isn’t all that hard – All you need to do is to get a specific code generated from a specific website and pasting it.
However, some people do get it wrong and when it comes to codes, even a small error can cause ultimate failures so today, I’m going to hop on things and show you why and how.
How Does it Work? -Unraveling the Widget Mystery
If you can copy and paste, you’re halfway there.
The process is quite simple – If you want to learn how to link your WordPress Blog to a Facebook Business Page, all you need to do is to simply generate a code from Facebook’s developer site and pasting it back to your site.
There are many tutorials who will ask you to get the codes from their own “trusted sources” but the best place to get that is and always will be from Facebook itself.
This is because Facebook will give you an approved link which you can safely add to your site straightaway and apart from that, they will synchronize the widget for you automatically so that whenever you update your Facebook Page, it will also be updated on your site widget simultaneously.
You can choose to add just a simple Facebook page name, or add more choices such as adding the Facebook Feed, showing upcoming events or even both and here’s how…
5 Simple Steps to Embedding Your Facebook Page
It’s actually quite straightforward.
If you’re wondering on how to add a Facebook widget to your WordPress site, these steps will show you how to go about doing it…
Step #1 – Go to Facebook Developer
The first step to embedding your Facebook page to your site, is getting that specific code.
Luckily for you, very simple and you can simply do that by heading to Facebook for Developers or simply by searching through Google “Facebook Page Plugin”.
Now Facebook for Developers is very huge with many different sections so make sure you search for Facebook Page plugin to get straight to that one page we are going to work on.
It doesn’t matter what type of CMS you use – Whether it’s WordPress or Wix, the code is the same as it comes from Facebook itself.
After all, it is your Facebook Page.
Once you’ve stepped into the page, we move on to…
Step #2 – Keying in your Facebook Page Details
This is the crucial step, but you’re almost there.
Over here, you need only to fill in your Facebook Page details – Namely the Page URL, Tabs, Width, and Height.
You can leave the width and height dimensions empty if you are not sure what to put, and edit it back later on.
For the tabs section, you may leave it to the default Timeline which I’ve already written there for you and frankly, it’s what everyone else puts – or you could add in “Events” there too so that your Facebook Page widget will show that feature for your website audience to see.
I hope you’re still here with me because once all of those are filled, all you need to do next is…
Step #3 – Getting the Code of Mystery (Facebook iFrame)
Just click on “Get Code” and you’re there!
Click on iFrame and that will bring you straight to the code meant for your Facebook Page which we will need to use to add to your site.
Now that we’ve gotten the code, let’s get back to our website (Or your site in this case) where we’ll learn to embed.
Step #4 – Linking it to Your WordPress Site
Now that we’ve got the code, let’s make it appear on your site.
One thing to bear in mind is that the code that you got is actually an html code which brings a popup of a Facebook page to any types of websites whatsoever.
Which means that whatever website provider that you use, you can make it appear if you paste that code into their text editor but for the sake of this guide, I’ll be showing you how to do that through WordPress since that’s the website CMS that I’m using.
From your WordPress dashboard, head over the widgets section which you can find under appearances, and from there, simply paste the code on the Text widget and voilà! Your Facebook page will appear!
Step#5 – Customize!
If you had left the size dimensions blank or default, chances are your Facebook widget might appear a bit disorientated.
Don’t worry, because now we’ll get straight to adjusting it.
Head over back to the Facebook Page Plugin site where you fist retrieved your code, and adjust your dimensions there.
Typical widget size is about 250px width and 300px for height but every website theme has different sizes so it’s up to you to do some trial and error with it.
If you want an easy way to measure you image size though, you can simply right click to bring up the shortcut tab and from there, click on “Inspect”.
Once you’ve opened inspect, don’t worry about that complicated coding – You can just scroll your mouse to see the size of each of your images.
If you already have a widget on your sidebar, just measure that an you can see what the width is and from there, simply use that number on the Facebook Page Plugin and you’re set!
Here’s a video I made to help speed things up…
Oh, But it Still Doesn’t Work for Me!
Worry not, there is actually a trick that not many people know of.
You see, some WordPress updates or theme updates may cause some irregularities for certain codes, including Facebook.
The solution is simple, head over to your WordPress widget page and from there, paste your Facebook Page code into a different tab called “Custom HTML”.
The image above is an example of when I pasted the code on my site.
As you can see, the error detected was the fact that some of the wordings were not in lowercase.
I changed that and here’s how it goes…
If you do that for your code, it might be the same type of error or it might be something else but either way, you can definitely detect what was wrong with the code with and from there, fix it.
Once you’ve corrected that error, everything should remain the same and your Facebook widget should be running smooth as ever.
Can I Do This on Any Other Website?
The process is pretty simple no matter the type of website – All you need to do is to simply get your Facebook Page code from the Facebook Developer page which I showed earlier and from there, just add in that code to your own respective websites.
It might be a bit different for other websites because some Content Management Systems (CMS) like Wix and Joomla does not use plugins or widgets like WordPress so it might be a tad confusing.
However, a widget is only a name and at the end of the day, it is just an text editor like any other so if you paste that on the “Text” side of the editor, you can see how the Facebook Page plugin will appear on the “Visual” side.
Go ahead and try, the Facebok code is meant to synchronize with any website type so there’s no excuse to not get it done!
Will This Slow Down My Website?
Not so much.
As a WordPress user, you might be familiar with plugins right? Well this Facebook Page Widget trick we did, is not through a plugin.
In fact, it is a direct code embed that we simply paste straight on your website without the need of installing any plugins so the coding is faster since its direct, and it doesn’t put on much weight.
Plugins are only shortcuts that we WordPress users have as an added bonus feature and the sole purpose of that is to make our lives easier by not having to write those codes ourselves.
Because as most of you might have known, websites are all about coding which is a whole different course on its own.
In fact, universities even have courses for coding because there is a lot to learn.
However for most bloggers like me and probably you, we don’t really come from an all IT background so having to do coding manually will definitely slow down our content creation stuff.
Hence the birth of plugins.
WordPress provides us with plugins so that we can simply install some features on our site without having to create a whole different code for that.
Want to add a social media share button? Install a plugin.
Want to check your analytics? Install a plugin.
Want an easy contact form? Install a plugin.
I myself am guilty of installing many plugins throughout my period of managing this blog but after finding out how having a lot of them could slow down my website, I reduced my plugin usage.
I didn’t delete all of course, just saved some of the essential ones.
At one point, I had over 20 plugins (Crazy I know), and some of them I didn’t even know were still there or what it were used for – I just kept them because they looked awesome.
But in retrospect, an ideal plugin number that anyone should have in order to not slow down your site with those heavy data, is to have about 6-10 plugins.
As long as you keep the important ones, those should be more than enough for your site to operate at maximum capacity.
Want More WordPress hacks? -Enter the School of Bloggers!
WordPress is fun but there are just so many other tricks to it that we don’t understand.
We have to end up looking for solutions in Google such as ways on how to add the social share buttons, how to connect Google Analytics, and also how to boost the SEO of each and every one of our posts.
Introducing Wealthy Affiliate, a platform for people interested in growing their own online business or build a successful one from scratch and monetizing it.
From evergreen lessons and LIVE video training every Friday, to keyword research tools and an awesome community with friendly people managing different businesses and blogs – They have literally everything to help you succeed online.
The SiteHealth feature is quite awesome too as it analyzes your website for you everytime you log in and it lets you know which parts you are lacking in and what should you improve on to ensure that your site is running smooth and SEO-friendly.
As you can see from the image, my publishing frequency is quite low as I’ve been pretty occupied as of late so now that I know, I need to start putting some time aside to start creating content again every week.
I have 3 websites that I run simultaneously and as much as I think that I could handle everything on my own, I couldn’t and without a system, I got overwhelmed and I end up messing up my entire content creation schedule.
Trust me, managing a blog can be hectic the more you grow.
Although I have been a member for 3 years now, and I still am learning to master WordPress but it gets easier when you are in a community of bloggers and content creators who share the same vision and sometimes, I too share some tips from time to time to help out new bloggers like this one.
If you want to boost your WordPress blog further by optimizing it, then WA is definitely the best bet for you.
The WordPress Facebook Widget may be simple but it can have a huge impact on your site.
It shows how transparent you are as a brand and for other visitors, they tend to feel more secure when they see how many people are following or liking your page so it’s definitely worth adding.
If you’d like to learn more cool WordPress hacks, check out my top recommended program here.
Thanks for reading, have a great day ahead!