How to configure Like Button Plugin for a Facebook app
===

I have a facebook app where I want to configure a "like" button inside it. So, I added 

    data-href="http://apps.facebook.com/my-app/like-button-in-page-url

When I tried using `like` button, it wasn't working. The "like" plugin just flashed up and disappeared.

This time, I added the actual URL using the hosted domain name

    data-href="http://my-app.heroku.com/like-button-in-page-url

Obviously its working. But this is not I want.

this is what I am expecting:

1. I want the like button to use URL relative to facebook app domain name.
2. when a user clicks link on a feed, it should redirect to my app. not to production server.

How should I do it?