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
-
Should I post my upcoming blog series on my blog or on Google+
I am in the process of writing a series of blog posts covering one subject in more detail. Normally, I would just post my blog posts on my blog, but I have heard and read recently that posting content on Google+ is having very good results. So should I post this series exclusively on my Google+ pages instead with a link back to my blog and site or just focus on posting on my blog as I have done before? Thanks in advance, Peter
Social Media | | crackingmedia0 -
What is a good amount of social shares per week / day?
As the title says. What is your idea of a good amount of social shares to be given per day or week or month for a website?
Social Media | | Zoolander1 -
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 -
Do i direct traffic to all social platforms or not?
Hi ...I have a brand that is very strong socially..specifically facebook and twitter and this is where we have directed all strategy and traffic. We recently wanted to establish a presence on google+ and have done so. My feeling at this point is to maintain a presence on google+ but only direct social traffic to facebook and twitter from the brands website....so we can keep the focus here aswell as the stronger community. I have noticed other brands doing something similar.....is this a good strategy or should we be directing traffic to all the platforms from the site?...bottomline should we be linking to all our social platforms from the brands website or keep it linked to the stronger platforms and just maintain a presence on the others? thank you
Social Media | | nomad-2023230 -
How does Social Media really Impact SEO?
It's become a common refrain that social media is critical to SEO. Taking this literally, I have been examining the impact of social media on specific pages and topical areas within my site. Specifically, I am looking at pages and content areas that we promote and link to via social media and I am seeing zero correlation to SEO success. Social media is not impacting my rankings at all. And we have a sizable social footprint. Has anyone else done this type of analysis and seen different results?
Social Media | | AmyLB0 -
Social Content Posting - Post to Facebook, Google Plus, Twitter and Linked in at the same time
Hi, Is there any means of posting new content for my companies various social profiles in the one go rather than having to log into each one? This would save a lot of time. Thanks
Social Media | | fdep0 -
Is it possible to see who have liked your blog post ?
I was wondering if you have a like button on the blog and people use it to like a post , is it possible to find out who all have liked the post ? ( there is a counter to show the number of people who have liked the post, but could not figure out who have actually clicked the like button )
Social Media | | avant_seomoz0 -
SEO w/o Social Webinair experiment - how can RTs of a URL of a google search possibly affect the position of one of the search results?
I missed the webinair but have just been going through the slides. Looking forward to watching the video when its up. I have a question however regarding the experiment conducted by Rand to find out: Is Social Influencing Primary Algorithms (slides 7 - 20) The suggestion is that an RT of a google search URL affects the ranking of one individual ranking site. The +1 side of the experiment I understand completely - it is clear how Google can see that there is a social preference for the site and reward accordingly. But how would retweeting the search result URL possibly affect its rankings? Is the suggestion that those doing the experiment also clicked on the relevant link? And if so, how is Google discerning that this additional traffic is down to Twitter? I feel I am missing something incredibly obvious. Anyone want to help me out here?... otherwise I'm not going to sleep tonight...
Social Media | | seomasters0