I am testing fb connect using the shortcode provided

Hi,

I am testing fb connect using the shortcode provided by Ultimate Facebook plugin. I successfully used the shortcode in an ajax popup too. However, I get the following error when i try to login using FB -
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

I am testing on the site http://www.ajaymreddy.com/stg/ and have used the settings specified in the backend plugin settings (app domain = ajaymreddy.com and site_url = http://www.ajaymreddy.com/stg).

However, on using inspect element, I noticed that the app id being passed in the FB login iframe is different in the login page and the page where I used the shortcode.

Shortcode -
<iframe name="f2706404b" width="1000px" height="1000px" frameborder="0" allowtransparency="true" scrolling="no" title="fb:login_button Facebook Social Plugin" src="http://www.facebook.com/plugins/login_button.php?scope=user_about_me%2Cuser_birthday%2Cuser_events%2Cuser_location%2Cuser_birthday%2Cuser_likes%2Cemail&login_text=Log%20in%20with%20Facebook&app_id=280502332075439&locale=en_US&sdk=joey&channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D24%23cb%3Df225b126e4%26origin%3Dhttp%253A%252F%252Fwww.ajaymreddy.com%252Ff15f65ce84%26domain%3Dwww.ajaymreddy.com%26relation%3Dparent.parent" style="border: none; visibility: visible; width: 150px; height: 22px;" class="">

Login page -
<iframe name="f1edb792dc" width="1000px" height="1000px" frameborder="0" allowtransparency="true" scrolling="no" title="fb:login_button Facebook Social Plugin" src="http://www.facebook.com/plugins/login_button.php?scope=user_about_me%2Cuser_birthday%2Cuser_events%2Cuser_location%2Cuser_birthday%2Cuser_likes%2Cemail&login_text=Login%20with%20Facebook&app_id=540153752709595&locale=en_US&sdk=joey&channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D24%23cb%3Df1bf013df%26origin%3Dhttp%253A%252F%252Fwww.ajaymreddy.com%252Ff2fc94edd4%26domain%3Dwww.ajaymreddy.com%26relation%3Dparent.parent" style="border: none; visibility: visible; width: 147px; height: 22px;" class="">

The app id in the shortcode is not related to my app at all.
Please help.

Ajay