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
-
Recommended Social Media Scheduling platforms
I am currently using BufferApp to schedule my social media posts. My scheduling gets messed up at least once per month, where I lose posts or days are skipped, etc. without any changes (and even when I can see the expected schedule). I have used Hootesuite in the past and I like it, but I prefer Buffer when it works. Is there something else that works as good as Buffer used to? Thank you.
Social Media | | RoxBrock0 -
Duplicating content on more than one social network
I am just getting in to social media for my company and i can find an answer to my questions. Different people give a different answer. Question: i have written a post and uploaded it to our Google+ page. If i upload the same post / content to our Facebook page, will this fall foul of the 'duplicate content' rule with Penguin? Or does that rule only relate to websites? Any Guru's out there with an answer? Much appreciated. Si
Social Media | | DaddySmurf1 -
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 -
Various question re SEO and social media
Hi all: It is time for my semi-annual “I don’t have a clue” question. Actually it’s questions since there are three although they may overlap. I am confused about the intersection of social media and SEO. A couple of years ago it seemed like one of the better procedures for link building was writing articles and having them published on Isnare, Goarticles Ezine and the like. Now I am not sure if this is effective anymore. It seems like all of the emphasis is being put on social media sites. Not just Facebook, Twitter Pinterest, and blogs, but big ones (that I don’t have a prayer in the world of getting on) such as Mashable, Reddit etc. How are my efforts best served at this point? Should I still submit articles to article directories or should I concentrate on guest blogging (which isn’t so easy if you want a reputable blog) or try something that I can’t even think of? Second, my blog is a Wordpress Blog that is no big deal and probably isn’t read much. It can be accessed either at Wordpress or through my site. It is listed in my Google Merchant Account, but I can’t imagine anyone reads it. It’s about gifts and products that we sell and is not going to stimulate anyone’s mind. Two things here: First (and I don’t know if anyone will know the answer to this) my site is hosted by Yahoo. There is a tab at the top of my site that takes you to the blog, but Yahoo also has some way to integrate the blog with the website. Does anyone know if this will make any difference? Second, the last several times that I ran by backlinks on Open Site Explorer my Wordpress blog has not shown up. It always did previously right at the top. Any guesses as to why it no longer shows? Finally, in the last couple of months I have had a precipitous drop in orders and visitors to my site. The only thing that I have done is to lower my budget for Google Adwords, but it was never that high to begin with and shouldn’t account for the change. Given the holiday season traffic should be picking up but it is going in the other direction. Does anyone know what is happening here and what to do about it? Anyone with really good insights might get a gift certificate from us (is that permitted on SEOMOZ – if not then forget it). The website is www,uniquegiftsanddecor.com. Here’s a thought – buy stuff from us. (ignore if this is spammy). Many thanks. Don
Social Media | | uniquegifts-2778790 -
Social Media & SEO
I just wanted to see what your opinions were on this. Does being active on social media help with your SEO efforts. I'm not talking about having a link to your website on your Facebook page, but in general commenting on news stories and having conversations. Would Google prefer you over a competitor if you were more active on social media?
Social Media | | AAttias0 -
How to promote a blog after Penguin and the Google blog update
Hello, I have a question, or maybe a discussion. I'm wondering what the best way is to promote a blog from Blogspot or Wordpress nowadays with Penguin and other Google algorithm updates? Looking forward for your answers. Regards, Thomas
Social Media | | ThomasH1 -
Social button yes or social button no...
Hi everybody! It's quite clear that if you have a pretty, clean, compact html code on your website, Google loves you as a lovely mom does with her kids. But it's not a dream world and you have actually to choose between social and clean code. In fact to add, for example, the Facebook social button, you have to include some files from the Facebook servers. Even though the googlebot doesn't download them (but people do, with page optimization decreasing), it reads some javascript code. Moreover you have to add some code where you want the button appears. I think it hasn't much sense for the googlebot, so that could it be punitive for your website / page to place that bunch of code? In the end my question is the following: Does the social power win against negative factors like additional files to download and a bunch of ugly code in your body? social power > bad factors (file downloading+more code)?
Social Media | | jobintourism0 -
What social would be good, what buttons to use
Hello, What social media do you recommend for nlpca(dot)com and what kind of buttons convert best for a site like that? We're working on facebook right now: http://www.facebook.com/pages/The-NLP-Coaching-Institute-of-California/187804434598142 So far I like the buttons on the top right of this site: weddingmountain(dot)com. Thanks!
Social Media | | BobGW0