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
-
Diving into Social Media...
Hi Our company has a Facebook page - it's pretty outdated and barely used. I want to change that, but wondered if anyone had any advice on how to start it up again? It hasn't been used for a while, so how do you start off with your first post? Or do you act like you have been there the whole time... probably not the best idea. We don't want to confuse people or look stupid with the first post. I want it to be regularly used for content, community building and demonstrating the personality of the company. Thank you 🙂
Social Media | | BeckyKey0 -
Will Facebook traffic hurt our SEO? Should we put our blog on the core domain or sub domain?
We are concerned that social traffic could hurt our SEO. What do you think... Our average time on site from organic search traffic is 7 minutes. Facebook traffic has an average time on site of 1 minute. Both traffic sources are going to different pages. If we generate 3 times as much traffic from Facebook as we do from google this will pull down our overall average time on site and engagement levels big time. Should we put our blog on the core domain or a subdomain? Right now we are holding back on promoting on facebook because we are concerned it could hurt our SEO, what do you think? Should we try to get as much traffic as possible from Facebook even though the engagement is much lower? Should we put our blog which is generating the low engagement traffic from facebook on the core domain or a subdomain?
Social Media | | rvshare0 -
Does a 301 retain social actions
I just changed the domains on one of my largest and oldest sites for branding reasons. I have the 301 set to keep the page structures and all. My question is will the "likes" and shares and etc be kept via the 301 or will they have to be reacquired?
Social Media | | Atomicx0 -
Is it possible to get high page ranking with no social media activity?
I'm curious to know how much social media effects the chances of being more highly ranked on Google. I appreciate it's important to 'be seen' by Google, but if articles/newsletters are being written, does it really matter if a business isn't using Twitter or Facebook, etc?
Social Media | | lindsayjhopkins0 -
Social media profiles with same description - Duplicate content or reinforcing business details?
Hi, I am currently doing a Social media review and find myself wondering whether having exactly the same copy - or part thereof, on a businesses' Facebook, LinkedIn, G+, Twitter, profile(s) is likely to be viewed by SE's as a good or bad thing? Is it duplicate content and to be avoided? Or would it be viewed as a case of the business trying to ensure a consistent profile and therefore reinforcing your business details?
Social Media | | Binarynature0 -
Is social media going to be the king of SEO?
Hi, Bit of a discussion really, every article out at the moment talking about SEO mentions how Social Media will take over in 2013. Is this really the case, should every SEO be focusing a large amount of time of Social Media? Far as im concerned I do a few things, try and build the social lists on different networks such as Facebook & Twitter also trying to get the list to engage with my posts and secondly social sharing from onsite content. Thats it at the moment.
Social Media | | activitysuper0 -
B2b pest control social media strategy. Any ideas?
Our client is a b2b pest control company. they are making software and sell leads and some day want to rank for bed bugs. they want to get into social media but I am having the hardest time coming up with ideas.
Social Media | | OxzenMedia
Can you help?0 -
Are social signals passed with a 301 redirect
Hi all, A question came up today that I don't think I've seen answered before. We hear all the time how important social sharing metrics are becoming to SEO, but what happens to the social signals of a page when it is 301 redirected? Are the social signals forwarded on in the same manner as link juice? Has anyone ever seen any experiments carried out around this before? Thanks very much in advance for any information shared. Cheers.
Social Media | | searchysearchy1