My client wants to display popup window with some coupon codes when some one clicks the like button of his shops facebook fan page. He is currently using the static fbml. I never worked with fb pages before. So know nothing about there api. I prefer javascript if possible. Or for anything else please explain step by step. Thank you in advance.
Share
There is only one way to do this. With a landing page and it checks to see if the page is liked or not. You are going to have to create an application by going to http://developers.facebook.com/apps. Tis will allow you to create a new landing page. You will need a server to host it on or use the free cloud service that they now provide. The app will need to be created with one of the SDK’s from https://developers.facebook.com/docs/sdks/. With PHP to check if someone likes the page you use code like
Now from here you can create any page to display what ever content you pretty much wish.