The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Social Media
    4. How does SEOMoz Code its Social Badge on Blog

    How does SEOMoz Code its Social Badge on Blog

    Social Media
    4 3 567
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Heydarian
      Heydarian last edited by

      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

      1 Reply Last reply Reply Quote 0
      • KaneJamison
        KaneJamison last edited by

        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/

        1 Reply Last reply Reply Quote 1
        • caseyhen
          caseyhen last edited by

          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.

          1 Reply Last reply Reply Quote 2
          • Heydarian
            Heydarian last edited by

            Thank you guys. This was great. I'm definitely going to roll it out to all my sites.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Manual submission vs automated submission to social bookmarking sites for blog posts
              DennisSeymour
              DennisSeymour
              0
              2
              705

            • Blogging and ??
              VaiSam
              VaiSam
              0
              5
              85

            • Should I post my upcoming blog series on my blog or on Google+
              crackingmedia
              crackingmedia
              0
              6
              149

            • Hootsuite Vs Sprout Social for social media management
              netlover
              netlover
              0
              5
              1.9k

            • How to migrate social likes when moving blog domain?
              MatthewBarby
              MatthewBarby
              0
              2
              1.7k

            • Why isn't SEOMoz using Wistia's social sharing feautes?
              TheDude
              TheDude
              0
              6
              1.5k

            • Why has SEOmoz added G+ code to multiple pages?
              caseyhen
              caseyhen
              1
              5
              603

            • If I move my blog from subdomain to root, will my blog lose all of its authority? Social signals?
              EGOL
              EGOL
              0
              6
              1.2k

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy