I would like to build a Facebook Like-functionality for a video competition (currently not connected with Facebook in any way) where the like button gets the total amount of likes as a callback when clicked so that I can save it in my database and use as the primary voting system.
Is it possible to build this solution, preferably in Javascript?
EDIT:
What I want to do is
- Implement a "Like"-button
- When clicked, like request is sent to Facebook
- When the request is processed, a callback function is activated.
- The callback function gets the total amount of likes as a parameter