开发者

Why isn't the facebook "like" button displaying on my page?

Could someone please take a few moments out of their schedule to look at the source code for the url: http://thered-line.com/petition-view.php?petition_ID=10 and tell me why the facebook "like" button is n开发者_JAVA百科ot appearing?

Thanks,

-Lance


There is a syntax error in your page. You could easily have spotted this using a debugger. (F12 in IE, FireBug Addon for FF, Ctrl+Shift+I in Chrome and Opera)

                <div id="fb-root">
                    <script>
                        window.fbAsyncInit = function() {
                            FB.init({appId: 'your app id', status: true, cookie: true,
                            xfbml: true});
                        };
                        (function() {
?> //syntax error
                            var e = document.createElement('script'); e.async = true;
                            e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
                            document.getElementById('fb-root').appendChild(e);
                        }());
                    </script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜