Facebook - Error parsing input URL, no data was cached, or no data was scraped

后端 未结 5 2094
北恋
北恋 2020-12-19 01:46

After research I found that alot of people facing the same issue. But so far I don\'t solution, this happened after I switch my server to linode.com

lets take an exa

5条回答
  •  情书的邮戳
    2020-12-19 02:21

    For people experiencing the same issue but for different causes, I discovered a few interesting things about how Facebook "scrapes" pages, checking the logs of the server while doing some trials.

    First of all: if you never tried to share a page with FB, FB never tried to scrape it, and it will not try to do so if you only put the url in the Debug tool. That's the first reason because you get the error: it just states that FB has no information on the page, you must "force" it to scrape the page.

    The first time you try to share a page, FB scrapes it (asks your server the first 40k of the page and analyse the opengraph tags). What can happen is that you do not see the image: Facebook Share Dialog does not display thumbnails one first load

    The reason is that FB behind the scenes is still scraping your page and caching the image. The next time, in fact, you have also the image. How to solve it? Pre caching: https://developers.facebook.com/docs/sharing/best-practices#precaching

    or simply add

    
    
    

提交回复
热议问题