Facebook like callback, and post it to target to like

后端 未结 1 1840
盖世英雄少女心
盖世英雄少女心 2021-01-07 09:58

when i\'m looking at the html source, i look this javascript code


<         


        
相关标签:
1条回答
  • 2021-01-07 10:25

    FB.Event.subscribe('edge.create', function(){...}) is a callback triggered when the Facebook like button is clicked. The ajax call to fbreceive.php is keeping a track of which logged in user is "liking" which content on the site and when (the comments are also quite explanatory). The username and timenow have been captured from the user's session and included as a part of the javascript.

    It's a really neat idea, I would say!

    0 讨论(0)
提交回复
热议问题