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
-
Links to Social Media accounts, rel=nofollow/follow and rel=me
Hi guys, I just saw this rel="me" attribute and I can't find any reputable recent (within last year) information. I never heard of this and wonder if it's any beneficial in any way. At the same time, should I use nofollow or follow on links from website to social accounts? I've heard different opinions but, again, no recent relevant and trustworthy information. Please, kick me into right direction. However, when kicking, please give me some proof, rather than thoughts 🙂 Thanks!
Social Media | | DmitriiK0 -
Language Specific Social Account
We have a managed server company http://www.centerserv.com in 3 languages. The 3 languages are international and not country specific. Should we open 3 different social media account/page for each languages (facebook, twitter, pinterest, linkedin, google+,tumblr)?
Social Media | | groupemedia0 -
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 -
Optimal Image Size For Social Sharing
Hi Everyone, I have just watch Rands latest whiteboard friday and in it he mentions that care should be taken to ensure that images are sized correctly for social sharing on facebook and Google+. Could anyone expand on what the ideal size for an image should be so that is sizes correctly when shared socially. Thanks Miles
Social Media | | easyrider20 -
Has anybody else noticed that Google has made a significant change to their SERP? There is a lot of social data reported from LinkedIn, Youtube and Facebook (includes page likes and activity) when you search by company name. Thoughts anybody?
Has anybody else noticed that Google has made a significant change to their SERP? There is a lot of social data reported from LinkedIn, Youtube and Facebook (includes page likes and activity) when you search by company name. Thoughts anybody?
Social Media | | rrad0 -
Any recommendations for Social Media Submission
I came across a company one time that would sign you up and submit your username to all the social media sites. Seems like it was "knowit" or something like that. Anyway Does any one have an recommendations on companies to submit to sites instead of having to do each one individually. Thanks, Utah Tiger
Social Media | | Boodreaux0 -
Why has SEOmoz added G+ code to multiple pages?
Hi, If you look at SEOmoz's Blog pages, you'll see they have added the G+ rel="publisher" code. On http://support.google.com/webmasters/bin/answer.py?hl=en&answer=1708844 Google says: "A rel="publisher" link from the main page of your website to your Google+ page." Is there any benefit to putting this code into the sites template (adding it to every page of the site) when it could be added to just the homepage? Not a criticism, just curious to know how I should implement the code on my own site (concerned that adding it to the site template is a kind-of link out on every page of my site) Cheers FashionLux
Social Media | | FashionLux1 -
Custom Social Media icons: Good or bad?
Hi guys, In our never-ending search for better SEO strategies and results, our journey has led us to question the idea of creating custom social media icons for our site. We are wondering if anyone has had experience, either negative or positive, by using these icons, or if there is no difference at all? I would like to make it clear that we are only thinking about customizing the icons that lead to our Facebook page, Twitter profile, YouTube channel, etc. NOT the like/share/tweet/etc buttons. We understand the negative effects in changing those icons, but are interested in knowing if creating general icons that match our design will be a good or bad thing. Any replies are appreciated, thanks!
Social Media | | jid0