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 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. 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. 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
Archived
This topic is now archived and is closed to further replies.