Toward the end of last year, Facebook released their new ‘Subscribe’ button to webmasters, allowing people to embed the button on their own blog or website.
The subscribe function in Facebook allows you to follow updates from people who you’re not friends with. Any Facebook user can now broadcast themselves to a public group of followers, Twitter-style, while reserving private status updates for their Facebook friends.
So if you’re a WordPress blogger and want to use Facebook to expand your reach, adding the subscribe button to your site is a pretty logical idea.
Adding the subscribe button to your site
Step One
You need to allow people to subscribe to your Facebook profile. If you haven’t yet done this, read the instructions here.
If you’re trying to build a public following on Facebook, it’s a good idea to customize your profile URL. By default, your URL is just a bunch of numbers, but you can go to www.facebook.com/username and change it to something more memorable.
Featured Plugin - WordPress Q&A Site Plugin
Step Two
Venture over to the Facebook Developer site, where you can get the code for your own subscribe button.
The process is fairly self-explanatory. You need to enter your own Facebook profile URL for the subscribe link. (For the purposes of this tutorial, I’m just using Mark Zuckerberg’s URL, which is listed by default).
You’ll need to play around with the color and width settings to get the right look for your own WordPress theme. You can also choose from three different display formats: standard, button count and box count.
Step Three
Once you’ve got the dimensions and display format right, you need to choose how you will embed the ‘subscribe’ button on your site. You have three options: HTML5, XFBML and IFRAME.
Using the HTML5 or XFBML code will give you greater control over how the button looks on your site, but it’s a more involved process. You’ll need to hack around in your template files and add the JavaScript SDK. You’ll also need a Developer App ID from Facebook, which can be obtained here.
If you just want a basic solution and don’t need to do any serious customization, go for the IFRAME option. This HTML code can be placed straight on your site, wherever you want the button to display.
The end result
I’ve added the IFRAME code to a sidebar widget in the Twenty Eleven theme, and this is what it looks like:
And that’s all there is to it. Your readers can now sign up for your public updates on Facebook, directly from your WordPress blog.
Looking for more WordPress-Facebook integration tools? Check out Ultimate Facebook from WPMU DEV. This plugin is regularly updated and has everything you’ll ever need to connect your WordPress site harmoniously with Facebook.
Photo: Mr. Guillotine.




this tutorial is useful. it helped me
i have a doubt. how to subscribe our website. this subscribe is only for the user. i need my website is subscribe
Hi Afsal,
I don’t think it’s currently possible to let people subscribe to your blog updates through Facebook. Perhaps at some point the future!
Cheers
Tim
What type of widget did you put the iFrame (or HTML code) into? I currently have the Oulipo theme on my wordpress blog. I don’t see any widgets that allow HTML codes (other than the Text one, but HTML codes dont seem to work with it.)
Can you help me out?
Thanks,
Erika
Hey Erica,
I was using the text widget in this example. Have you double-checked that the iframe HTML won’t work on your site, using the standard WordPress text widget?
Let us know if you still can’t get it working.
Cheers,
Tim
Thanks for responding Tim!
For some reason it still won’t work. Is it just that the theme I have won’t allow HTML widgets?
When I do the HTML5 code in the Text widget, it displays on my blog as just the HTML writing.
When I do the iframe HTML in the Text widget, it displays as a link to the url.
Hey Erica, just checked out your blog and it looks like you’ve got the subscribe button working now. Everything under control?
Actually, the way I did that was just took a screen shot of what my subscribe button would look like through the facebook generator & then img linked it to my page. haha
But I’m still unable to do it through the html code. It worked with Google+ & Linkedin, but for some reason not Facebook?
Hi Tim,
I am having the same problem Erika had. I c/p the iFrame code into the “Text” widget on WordPress and all it does it post a link to the subscribe button.
Help Please!
:)
Hmm have you tried using a different ‘layout style’ for the subscribe button? There are three you can choose from when you create the button on the Facebook Developer site.
Done thanks!
Anita
You’re welcome!
Hi Tim,
Trouble!! I was ting to add the like button and then the subscribe button went off!
I tried again adding it and it wasnt showing any more on the screen..
Could it be my template?? If so why did it show initially but not now?
Confused!
http://www.myweddingnigeria.com
Help me. When I use the subscription button. I asked “Confirm”. Why do I see that?
Hi Tim,
I want to add Subscribe button in a page. How can i do that?
https://www.facebook.com/ivan.ziva10
subscreibe
hi tim how i can subcribe the accoant
Thanks for sharing, I can get it done by means of the widget. But what I’m looking for is to place the follow-button underneath every blog, is that possible?
Sure, it’s possible.
I presume you mean every blog post?
If so then it depends on the theme but generally most have single.php this is where the post loop is. You could look to include the FB code there.
You can see the full template hierarchy for WordPress here:
http://codex.wordpress.org/images/1/18/Template_Hierarchy.png
Take care.