facebook javascript sdk fb_xd_fragment?

后端 未结 9 486
面向向阳花
面向向阳花 2020-12-23 12:20

I am using the facebook javascript sdk to embed a like button in my page.

What is fb_xd_fragment? I see it appends to the end of my url like http://www.example.com/c

相关标签:
9条回答
  • 2020-12-23 12:55

    affer few days research and expriment with all solution on internet at last i come up with combine of this

    Change your head of your page:

    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/"  xmlns:fb="http://www.facebook.com/2008/fbml" lang="en-US">
    

    here the cocde put this where you want likeit button is:

    <div class="yourclass" style="z-index: 10;">
    <div id="fb-root"></div>
    <script src="http://connect.facebook.net/en_US/all.js" ></script>
    <script>FB.init({appId: '1234yourappidhere', status: true, cookie: true, xfbml: true});</script>
    <fb:like href="http..yourencodedurlswillputhere" layout="button_count" width="150" action="recommend" colorscheme="light"></fb:like></div>
    <script> document.getElementsByTagName('html')[0].style.display='block';</script>
    

    credit wellcome : http://www.xaluan.com

    0 讨论(0)
  • 2020-12-23 12:58

    The bug and the fix are now documented at http://developers.facebook.com/docs/reference/javascript/fb.init/

    0 讨论(0)
  • 2020-12-23 13:00

    Solved with the iframe like button.

    0 讨论(0)
提交回复
热议问题