Riparian Posted July 2, 2011 Share Posted July 2, 2011 I have no idea where to start with this one and have searched for an answer. I have a sales web site. Problem : Some fellow retailers are making their customers click the Facebook LIKE button before offering a discount code or other incentive. Can someone point me in the right direction or I am happy to pay for the solution (is that allowed on here?) Cheers and any help is greatly appreciated Quote Link to comment https://forums.phpfreaks.com/topic/240927-help-execute-php-after-facebook-like-button/ Share on other sites More sharing options...
cs.punk Posted July 2, 2011 Share Posted July 2, 2011 So you would like to check if someone has 'liked' your page/product, and if so execute some php script? I'd imagine you'd have to look into the facebook API. We do have a freelance section here aswell. Quote Link to comment https://forums.phpfreaks.com/topic/240927-help-execute-php-after-facebook-like-button/#findComment-1237568 Share on other sites More sharing options...
gizmola Posted July 2, 2011 Share Posted July 2, 2011 You would do this using the javascript api as described here: http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ The event that fires when the user likes something is edge.create. You setup a callback function to run when the event fires. Quote Link to comment https://forums.phpfreaks.com/topic/240927-help-execute-php-after-facebook-like-button/#findComment-1237569 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.