Click here to Skip to main content
15,913,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I have integrated Facebook like feature in my website but the thing is that i want to save the like and unlike details in my database as well is there any onther possible way to do it?
Posted
Updated 21-Jun-12 1:58am
v2
Comments
bhagirathimfs 21-Jun-12 3:24am    
I think u have to save the like details in the database.
Shashwath7 21-Jun-12 4:51am    
well, thats the requirement
ZurdoDev 21-Jun-12 7:59am    
It appears that you are saying that you wrote code to do something like Facebook's "like" feature. If that is the case, now write code to save it to the database. We do not understand where you are stuck.

1 solution

Use a js callback to record the like button clicks (probably via an ajax call back to your db).
JavaScript
FB.Event.subscribe('edge.create', function(response) 
{
  // do something with response.session
});


See https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ for more details.
 
Share this answer
 
Comments
Sandeep Mewara 21-Jun-12 16:41pm    
My 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900