I created an application and I wanted to add a like button.
When I click the button, it changes to show that I like the page, then immediately changes back with a red "Error" next to it.
This is the code that I'm using:
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/fr_FR/all.js#xfbml=1&appId=453976824647366";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="http://apps.facebook.com/453976824647366/" data-send="true" data-width="450" data-show-faces="true"></div>
This is a page index.php.
This is also my application settings, it might be of some help for you to understand my problem.
After the user "likes" the application, I want to redirect him on a second page (located in the root of my project).