How does SEOMoz Code its Social Badge on Blog
-
On the blog section (and most other pages of the site) there is a social badge on the right hand side of the page where it shows the number of followers on Twitter, FB fans, etc.
How does SEOMoz pull those numbers? It seems like its not using the normal Javascritps supplied by FB and Twitter, Feedburner.
Thanks
-
Thank you guys. This was great. I'm definitely going to roll it out to all my sites.
-
We pull the numbers via javascript. If you check out posts.js when you are on the blog you can see where we make a call to Facebook and to Twitter to get those numbers. We also have hard coded the numbers at specific dates just in case it fails so there is a number present.
For the feedburner numbers we do those server side and ping the feedburner api and cache it. So there is one unlucky sole every hour that has to ping feedburner to recache the number.
-
Those numbers show up in the HTML, so they're likely calculated server-side in some way.
Feedburner (RSS feed provider), Twitter, and Facebook all have an API of some sort to grab the content from. Moz appears to use bronto.com to deliver their Top 10 email, so that's probably where they're getting the email subscriber count from.
Here's a tutorial to get you started on pulling content from Facebook/Twitter/Feedburner. Since it appears that your personal website uses Wordpress, I'll use that as a reference:
http://www.problogdesign.com/wordpress/how-to-get-facebook-twitter-and-rss-counts-wp/
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
What's your preference - regurgitate content on social media or just post it the once?
Hi All, Not been on the forums for a while and this isn't really an SEO question. How do you feel about Twitter feeds that constantly regurgitate the same content. It's pretty much industry standard on most pages but if the content is yours, no affiliates or other people are involved - is it really necessary to plug the same 500 word blog post over and over? Personally, I don't like it. I think it looks spammy and unprofessional and in all honesty, I unfollow pages regularly because of it.. What do you guys think? Am I squandering content by not regurgitating? Happy Monday all - Jamie
Social Media | | SanjidaKazi1 -
Knowing audience through social share
Is there any way I can search on Google or use any tool to find my audiences who have shared my blog post on Facebook, Twitter or LinkedIn or anywhere else? If Moz provides this functionality then where can i find it. Also, How can i find the same information on competitors blog?
Social Media | | musigma0 -
Rel=Publisher On Business Blog
Hello! We were just wondering if we can add the Rel=Publisher on our business blog? We would like to have any of our blog posts that rank to have the small thumbnail/logo of our business similar to the way the rel=author tag works in the serps. All posts are published by our business and we would not like any of our personal pictures showing up. Any help greatly appreciated! Thank You!
Social Media | | TP_Marketing0 -
Social signals: are they weighted differently?
I know social signals affect your site's ranking: but does it make a difference whether these come direct from your website (eg, people click on the Facebook button on a page, which is then posted to their own profile - ie, they create their own post) or whether people are share/like a post you have created on your Facebook account which contains a link to your website. Are they seen as equally as useful/important?
Social Media | | SuperCooper0 -
How do search engines understand what social pages are official pages of my brand? If my Facebook page name is not my brand name (even though there are links from website to page and vice-versa) will that confuse search engines?
My question is about social shares, and how search engines understand what profiles are linked to what businesses?
Social Media | | PlanetDISH0 -
Recommended/Convenient Social Share Plug-In for Agencies w/Multiple Accounts!
Hi! What is a recommended social media share plug-in (SEO-friendly) to implement across multiple websites (desktop & mobile) for an agency? Also, does the suggested social share plug-in provide a dashboard to review multiple accounts via one location?
Social Media | | RezStream80 -
What is the top 3 things I can do with Social to help SEO, starting today!
Need some help focusing social hours to impcat brand, but also make a SEO impact.
Social Media | | jdcline0