1

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.

My aplication settings

After the user "likes" the application, I want to redirect him on a second page (located in the root of my project).

4

1 回答 1

1

喜欢框旨在喜欢具有有效 URL 的某些现有内容。

在您的情况下,您可以测试一些功能,但不能测试 box。

为了获得最佳方法,我建议您将网站移至在线可以继续从那里进行测试。

阅读'当我点击外部网站上的“赞”或“推荐”按钮时会发生什么?'

于 2012-09-05T10:09:29.570 回答