Help with Facebook Like button metric

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • _Rush_
    Confirmed User
    • Dec 2006
    • 742

    #1

    Help with Facebook Like button metric

    I'm trying to measure how many times a Facebook Like button has been pressed.

    I have a mainstream site that uses the Like button a lot like this: http://store.levi.com/

    Facebook only allows me to see data for the last day and there seems to be no way to see all-time stats. For example, if I want to see how many times one item has been liked for the past month, there's no way to do it.

    Anyone know of a solution for this?

    I need to do this ASAP and I'm willing to pay a developer who can come up with a solution that works.
    No sig.
  • potter
    Confirmed User
    • Dec 2004
    • 6559

    #2
    I'd want to use jquery to be honest. With .click() on the #linkid to add one to the number of "likes".

    • Store # of likes in some type of database.
    • On page load, php grabs database number, and sets it as variable and prints it to the little link on the page stating how many likes it has
    • Use jquery .click() to run a function on the like link, which has ajax update the database number and refresh the "like number" on the page without reloading the page.

    That's going to be your best and easiest solution. Sorry I don't have time to write it up myself. Maybe at the end of the day if no one else provides you with the code.

    Comment

    • CaptainHowdy
      Too lazy to set a custom title
      • Dec 2004
      • 94031

      #3
      No lo sé, solo estoy seguro de que mañana RUSH la va a romper...

      Comment

      • _Rush_
        Confirmed User
        • Dec 2006
        • 742

        #4
        Originally posted by potter
        I'd want to use jquery to be honest. With .click() on the #linkid to add one to the number of "likes".

        ? Store # of likes in some type of database.
        ? On page load, php grabs database number, and sets it as variable and prints it to the little link on the page stating how many likes it has
        ? Use jquery .click() to run a function on the like link, which has ajax update the database number and refresh the "like number" on the page without reloading the page.

        That's going to be your best and easiest solution. Sorry I don't have time to write it up myself. Maybe at the end of the day if no one else provides you with the code.
        This could help me for new "likes", but not for existing ones. Correct?

        Originally posted by CaptainHowdy
        No lo sé, solo estoy seguro de que mañana RUSH la va a romper...
        Sí que sí. Ya tengo mi entrada
        No sig.

        Comment

        • CaptainHowdy
          Too lazy to set a custom title
          • Dec 2004
          • 94031

          #5
          Originally posted by _Rush_
          Sí que sí. Ya tengo mi entrada
          ¡Si no tocan "The Weapon" voy a pedir un reembolso de mi entrada!

          Comment

          • _Rush_
            Confirmed User
            • Dec 2006
            • 742

            #6
            Anyone?

            Bump bump
            No sig.

            Comment

            • potter
              Confirmed User
              • Dec 2004
              • 6559

              #7
              Originally posted by _Rush_
              This could help me for new "likes", but not for existing ones. Correct?



              Sí que sí. Ya tengo mi entrada
              Ah yeah, I didn't even think of that. Was thinking more of a counter.

              I'm sure Facebook has a wicked good API to get the current vote counts from then. Which would make it even easier than my example. You just need to pull the data from the API and post it to the counter next to the "like" link. -- Would be up to you how often it updated and checked the count.

              Comment

              • rowan
                Too lazy to set a custom title
                • Mar 2002
                • 17393

                #8
                If I remember correctly using FBML (not IFRAME) lets you trigger a javascript event when the link is liked.

                Won't help you with past metrics, but from that point on you can track things...

                Comment

                • Mikushi
                  Registered User
                  • Sep 2010
                  • 36

                  #9
                  Facebook does give you the total click count.
                  Use the like button this way:
                  PHP Code:
                  <iframe src="www[dot]facebook[dot]com/plugins/like.php?href={the_url_of_your_page}&amp;layout=standard&amp;show_faces=true&amp;width=375&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" allowTransparency="true" class="fb_edge_widget_with_comment fb_iframe_widget" style="border:none; overflow:hidden; width:375px; height:23px;"></iframe> 
                  
                  It's gonna show the like button, and on the right "x,xxx People like this."
                  "Make everything as simple as possible, but not simpler" A. Einstein

                  Comment

                  Working...