Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
377 views
in Technique[技术] by (71.8m points)

php - Facebook can't scrape meta data after I've moved Wordpress to new server

I've recently transferred my Wordpress website to a new server and all seemed to go smoothly. However we've discovered that Facebook can no longer pick up data for our posts.

We posts news stories to Facebook and usually it populates the header, excerpt and image as soon as we post the URL to our page, however it is no longer doing this.

Facebook Open Graph debugger shows that Facebook is seeing a 404 page for all posts published AFTER the server move. It's displaying no image and the title shows the archives list for that date. The same issue happens when someone 'likes' an individual post using the social button directly on the website.

Important to note that any URLs for posts published before the server move work fine. This data can be found by Facebook without a problem.

The website is www.thisisardee.ie. Below are examples of a post before and after the transfer, so you can see both.

BEFORE (working): http://www.thisisardee.ie/2016/03/09/ardee-western-bypass-backed-transport-authorities/

AFTER (not working): http://www.thisisardee.ie/2016/03/23/mcguinness-recalls-brussels-terror-fear/

Any help would be hugely appreciated. It's massively affecting our website as people are sharing our posts on Facebook and they're appearing without image or correct title. It looks awful.

Thanks in advance.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Finally found the reasoning behind this.

After the move to Cloud hosting, from Shared hosting, I had updated my DNS records. However, I never updated my IPv6 record.

This wouldn't normally be an issue (and it explains why 99% of websites/services had no issue scraping/using my site) but Facebook appears to prioritise IPv6 over everything. So it was using my IPv6 record which was pointing to my old server and an old version of my website. Hence, it was pulling in no information for the page.

I'm surprised it was still linking to the new page after we manually put in the image and title when posting to Facebook.

I spotted this after my Share hosting plan was officially cut off today, therefore deleting my old website. The links began showing a 404 error.

Hopefully this can help others, as I've seen a lot of people with a similar issue but no solution. Update your IPv6 record as Facebook uses it!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...