GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Help with Facebook Like button metric (https://gfy.com/showthread.php?t=992430)

_Rush_ 10-14-2010 06:54 AM

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.

potter 10-14-2010 07:34 AM

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.

CaptainHowdy 10-14-2010 07:44 AM

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

_Rush_ 10-14-2010 08:11 AM

Quote:

Originally Posted by potter (Post 17605931)
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 (Post 17605949)
No lo sé, solo estoy seguro de que mañana RUSH la va a romper...

Sí que sí. Ya tengo mi entrada :)

CaptainHowdy 10-14-2010 08:12 AM

Quote:

Originally Posted by _Rush_ (Post 17606064)
Sí que sí. Ya tengo mi entrada :)

¡Si no tocan "The Weapon" voy a pedir un reembolso de mi entrada!

_Rush_ 10-14-2010 11:16 AM

Anyone?

Bump bump

potter 10-14-2010 10:01 PM

Quote:

Originally Posted by _Rush_ (Post 17606064)
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.

rowan 10-15-2010 03:48 AM

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...

Mikushi 10-15-2010 07:00 AM

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."


All times are GMT -7. The time now is 05:36 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123