I have a Facebook app that is built in PHP and have added a Facebook like button, which works quite well, however, the like button links to the page and i would like to know if it is possible to link to certain elements on the page. As an example, i have various coupons displayed and when a user clicks the like button on a certain coupon, i would like the message on the users page to say what coupon was liked and from what app, i.e. discount coupon from myAppName. Is this possible?
Share
Yes. Look at the Like button documentation, which specifies how to use Open Graph tags to customize the messages.
Basically, you’ll need to have a different url for each coupon, which will contain OG tags for that coupon. You can use the debugger to test this.
Then set the Like button URLs in your homepage (or wherever) to your coupon urls.