Monday 15 April 2013

javascript - Facebook Like box won't work -


Box like mine does not work as when a button is clicked, it becomes gray and says that you Like it, but when you refresh the page, the box displays as if it does not like it.

The code I am using is as follows:

  & lt; Html xmlns: fb = "http://ogp.me/ns/fb#" & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Title & gt; Test FB buttons like & lt; / Title & gt; & Lt; Meta Property = "FB: Admin" content = "100003952948052" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "fb-root" & gt; & Lt; / Div & gt; & Lt; Script & gt; (Function (D, S, ID) {var js, fjs = d.getElementsByTagName (s) [0]; if (d.getElementById (id)) returns; js = d.cent element (s); js .id = Id; js.src = "//connect.facebook.net/nb_NO/all.js#xfbml=1&id=163145893868097"; fjs.parentNode.insertBefore (JS, FJS);} (document, 'script', ' Facebook-jssdk ')); & Lt; / Script & gt; & Lt; Fb: such as href = "http://developers.facebook.com/docs/reference/plugins/like" send = "true" width = "450" ​​show_faces = "true" & gt; & Lt; / Fb: Like & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

I think this is normal behavior, you have to wait.

What is the & lt; Fb: Like ? Generally you only have to:

  & lt; Div class = "fb-like" data-href = "http://developers.facebook.com/docs/reference/plugins/like" data-dispatch = "right" data-width = "450" ​​data-show-faces = "True" & gt; & Lt; / Div & gt;    

No comments:

Post a Comment