Share link on facebook. facebook do not fetch to get description and image

本小妞迷上赌 提交于 2019-12-08 02:53:51

问题


I'm develop sucsongmoi.net (vietnamese language) and when viewer share link of site from their wall some link facebook get description and image, some link facebook could not get description and image.

eg: share sucsognmoi.net facebook do not get description, image but when i share: sucsongmoi.net/nau-gi-hom-nay-84.html facebook could get description and image.

I feel odd because I implement same code for this.

when I share through:
https://www.facebook.com/sharer/sharer.php?u=http://www.sucsongmoi.net/?a=1
then it works. Is that facebook cache my site (như google index)? Then how can I update it?

thanks in advance


回答1:


Here is a great tool facebook provides us to deal with exactly these issues -
Meet facebook's URL Debugger.

With regard to YOUR problems, you can see from this report that facebook is unable to retrieve the title & url og:tags.... this is possibly due to the non-standard character set that you are using... can you try change the og:title value to something with only regular English letters? Or alternatively placing some Unicode characters instead.




回答2:


I can not see ANY og:tags in your source. You can read more about Open Graph and the og:tags on this link.
Basically you have to place these tags in your page so that facebook can know what information to take and display when a user shares your url.
For example :

<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
<meta property="og:site_name" content="IMDb"/>

This will tell facebook about the image to use and the website name.




回答3:


If you want to control the information that is shown when your link is posted in a Facebook status then you must add some Open Graph tags to the head section of your web page.

They are explained here: https://developers.facebook.com/docs/opengraph/



来源:https://stackoverflow.com/questions/8384250/share-link-on-facebook-facebook-do-not-fetch-to-get-description-and-image

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!