og:url is driving me crazy?

前端 未结 3 581
攒了一身酷
攒了一身酷 2020-12-23 14:17

hope you can help me...

I want to have a page with facebook metatags, like:




        
3条回答
  •  时光取名叫无心
    2020-12-23 14:32

    you can put the like button in an iframe. Furthermore, that iframe may or may not need to be filled by setting a src attribute. I would try adding the like button code as innerHTML, and then try a separate file to set the src to.

    It would look something like this:

    
    

    When that doesn't work, place the like code in a separate file, and set the src of the iframe to that file. Let me know if you have quesitons

提交回复
热议问题