Facebook: Find out when user liked an URL

前端 未结 3 1212
梦如初夏
梦如初夏 2021-01-19 09:37

I can get pair of user_id - url from url_like table.
The only two columns are, as mentioned, user_id, url

3条回答
  •  盖世英雄少女心
    2021-01-19 10:17

    Facebook doesn't offer time when use liked an URL. And I don't think they will be giving it in future. It comes under Facebook privacy policy.

    You can trigger event when user liked url and insert time in your database by ajax. If user unlike and like it again then update same records. I have previously worked on subscribing like event by Javascript. SDK

    You can find how to subscribe to an Like in the the documentation here:

    FB.Event.subscribe('edge.create',
        function(response) {
            alert('You liked the URL: ' + response);
            //Insert your user id with time when user liked by AJAX  
        }
    );
    

提交回复
热议问题