Facebook的喜欢按钮(写在红色的错误) [英] Facebook like button (error written in red)
问题描述
我创建了一个应用程序,我想添加一个按钮,像
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.
这是code,我使用:
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>
这是一个网页的index.php。
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).
推荐答案
样箱是为了想拥有一个有效的URL一定的现有内容。
Like boxes are meant to like a certain existing content that has a valid URL.
在你的情况你可以测试某些功能,但不喜欢框。
In your case you can test some functions but not like box.
对于一个最好的方法,我建议你在网上打动你的网站可以从那里继续测试。
For a best approach I would suggest you to move you website online can continue testing from there.
这篇关于Facebook的喜欢按钮(写在红色的错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!