Hey guys I included a facebook like button on my site using iframe. My question is can I add an event where a user clicks on the like button and he will both like the page and take him to the page?
Asked
Active
Viewed 149 times
0
-
http://stackoverflow.com/questions/2798622/facebook-like-button-callback – IOrlandoni Feb 29 '12 at 18:01
1 Answers
1
From: http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/
<script>
window.fbAsyncInit = function() {
FB.Event.subscribe('edge.create', function(href, widget) {
location.href = href;
});
};
</script>

DMCS
- 31,720
- 14
- 71
- 104