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
-
Blog Redirects & SEO
We are switching to a new blog platform. Will a 301 permanent redirect of our blog URL affect our established social proof numbers from an SEO perspective? Will Google still have those social proof numbers (Facebook shares/likes, Tweets, etc. for the blog as a whole and for each individual blog post) and rank us higher or will all of those all disappear?
Social Media | | TVape1 -
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 -
Social Media Signals with AddThis?
Good day guys, Just a quick question. By having the AddThis sharing tool to share content such as blogs, does it still send the same social signals to Google as you would get by having the official Facebook/Twitter plug-ins? Regards
Social Media | | Michael-Goode0 -
Blog Commenting through Blogger, Wordpress, ETC
For blog commenting and gaining viewers, ultimately trying to get more links, should I leave comments with the Name +URL or leave a comment with my twitter account? Which do you all feel would be more effective?
Social Media | | AlphonsoSanchez0 -
Need a good Oracle friendly CMS to host our blog
I'm trying to convince my tech dept to take our blog off of a subdomain and move it to a folder on our root domain. Understandably, they don't want to build it from scratch, so I need some good CMS tools to build the blog. Our first choice is Wordpress but it isn't compatible with Oracle. Does anybody know of any good solutions that are Oracle-friendly? Our platform is PHP.. Thanks!!
Social Media | | znotes0 -
Dear SEOMoz and SEOMoz pro members, can any of you spare a Google + invite for a fellow pro member? please?!
[email removed by staff -- like comments say, let's PM this information rather than have it indexed]
Social Media | | richcowley1 -
Social Accounts/Networks Multiple account management?
Having tried Yoono and Tweetdeck I'm leaning towards Tweetdeck for ease of use.... Managing 5 facebook accounts, 9 facebook pages and 6 twitter accounts at the moment... Any other suggestions for tool or software I should consider?
Social Media | | JohnW-UK0 -
ROI in Social Media Optimization
Could you please explain the link values to be earned through Social Media Optimization?
Social Media | | gmk15670