We have a credits system than rewards people for liking us on facebook, for marketing purposes. If they like us via the button we put on our platform, we offer them a credit.
We used to implement this by listening to the event edge.create
window.fbAsyncInit = function() {
FB.init({
appId : '....',
status : true,
xfbml : true
});
FB.Event.subscribe('edge.create',
function(response) {
//give credit
}
);
Recently this stopped working since edge.create was take out of the events that you can subscribe to, based on the answer to this question: Facebook like callback event using edge.create is not working
adn this blog psot:
https://developers.facebook.com/blog/post/2017/11/07/changes-developer-offerings/?locale=en_US
Is there a work around for this? I would prefer some JS solution. Webhooks seems complicated and i not sure it would even works since i don't know how i would identify which facebook user is the user in our system (they can have different emails, names etc)
Thanks!