Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-14-2010, 06:54 AM   #1
_Rush_
Confirmed User
 
_Rush_'s Avatar
 
Join Date: Dec 2006
Location: Buenos Aires
Posts: 742
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.
_Rush_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-14-2010, 07:34 AM   #2
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
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.
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-14-2010, 07:44 AM   #3
CaptainHowdy
Too lazy to set a custom title
 
CaptainHowdy's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 93,188
No lo sé, solo estoy seguro de que mañana RUSH la va a romper...
__________________
FLASH SALE INSANITY! deal with a 100% Trusted Seller
Buy Traffic Spots on a High-Quality Network

1 Year or Lifetime — That’s Right, Until the Internet Explodes!
CaptainHowdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-14-2010, 08:11 AM   #4
_Rush_
Confirmed User
 
_Rush_'s Avatar
 
Join Date: Dec 2006
Location: Buenos Aires
Posts: 742
Quote:
Originally Posted by potter View Post
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?

Quote:
Originally Posted by CaptainHowdy View Post
No lo sé, solo estoy seguro de que mañana RUSH la va a romper...
Sí que sí. Ya tengo mi entrada
__________________
No sig.
_Rush_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-14-2010, 08:12 AM   #5
CaptainHowdy
Too lazy to set a custom title
 
CaptainHowdy's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 93,188
Quote:
Originally Posted by _Rush_ View Post
Sí que sí. Ya tengo mi entrada
¡Si no tocan "The Weapon" voy a pedir un reembolso de mi entrada!
__________________
FLASH SALE INSANITY! deal with a 100% Trusted Seller
Buy Traffic Spots on a High-Quality Network

1 Year or Lifetime — That’s Right, Until the Internet Explodes!
CaptainHowdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-14-2010, 11:16 AM   #6
_Rush_
Confirmed User
 
_Rush_'s Avatar
 
Join Date: Dec 2006
Location: Buenos Aires
Posts: 742
Anyone?

Bump bump
__________________
No sig.
_Rush_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-14-2010, 10:01 PM   #7
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
Quote:
Originally Posted by _Rush_ View Post
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.
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2010, 03:48 AM   #8
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
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...
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2010, 07:00 AM   #9
Mikushi
Registered User
 
Mikushi's Avatar
 
Industry Role:
Join Date: Sep 2010
Posts: 36
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."
Mikushi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.