Facebook Sharer not showing image thumbnail

前端 未结 1 383
误落风尘
误落风尘 2020-12-20 00:53

I have followed an example of Facebook share by using URL and parameters

Original (working)

Fiddle >> http://jsfiddle.net/dYfwK/



        
相关标签:
1条回答
  • 2020-12-20 01:52

    When I do this it works:

    <a href="https://www.facebook.com/sharer.php?s=100&p[title]=Title+here&p[url]=http://example.com&p[summary]=I+love+cheese&p[images][0]=http://www.ucmas.com/wp-content/uploads/2013/07/rm.jpg" target="_blank">Test</a>
    

    What you need to do is remove &amp; from the url and replace it with real &. I then url encoded everything that wasnt a link. this just means replace spaces with +. I also put image at the end of the url. Not sure why but that seemed to do the trick.

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