Cannot Share Links from My Website.
2

One of the website I help manage is https://www.lpb.org.

We have the following URL that we are trying to share in a post on Facebook: https://www.lpb.org/friends/friends-home/raffles/lpbs-poweron-raffle

It doesn't share properly. There's no image appearing on it, nor does it show the title of the page as part of the post, the description, etc.

I've tested the url in a few different Open Graph testers and they all render the post properly. I tested at orcascan.com and opengraphxyz.com to test and both showed the correct preview, and the site's own internal SEO plugin also shows the correct preview.

The Facebook Share Debugger however keeps returning a 403 error that it attributes to the robots.txt file. I adjusted it to explicitly allow the Facebook crawler: User-agent: * Disallow: /cpresources/ Disallow: /vendor/ Disallow: /.env Disallow: /cache/ Disallow: /tonights

User-agent: facebookexternalhit Crawl-delay: 0 Allow: / Disallow: /cpresources/ Disallow: /vendor/ Disallow: /.env Disallow: /cache/ Disallow: /tonights

User-agent: meta-externalagent Crawl-delay: 0 Allow: / Disallow: /cpresources/ Disallow: /vendor/ Disallow: /.env Disallow: /cache/ Disallow: /tonights

However, the debugger still can't crawl the site. For the url in question, if I view what the crawler sees, it says "the document returned no data".

The page comes up fine in the browser. If I use the mod header extension to simulate the externalhit header, the site comes up fine also.

I also saw in a similar support thread that it was suggested to run a CURL test with the following command:

curl -i -H 'Accept: /' -H 'Range: bytes=0-40960' -H 'Connection: close' -A 'facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)' https://www.lpb.org/friends/friends-home/raffles/lpbs-poweron-raffle

That command returns the following headers as wel las the HTML content for the page:

HTTP/2 200 server: nginx date: Wed, 18 Sep 2024 14:47:19 GMT content-type: text/html; charset=UTF-8 vary: Accept-Encoding set-cookie: CraftSessionId=digmdh6mvqcj2mdn86v4uvpq8c; path=/; secure; HttpOnly expires: Thu, 19 Nov 1981 08:52:00 GMT cache-control: no-store, no-cache, must-revalidate pragma: no-cache x-powered-by: Craft Commerce,Craft CMS x-powered-by: SEOmatic x-robots-tag: all link: https://www.lpb.org/friends/friends-home/raffles/lpbs-poweron-raffle; rel='canonical' referrer-policy: no-referrer-when-downgrade x-frame-options: SAMEORIGIN x-xss-protection: 1; mode=block x-content-type-options: nosniff

Can you please assist me in troubleshooting this? We are unable to share links from the site on Facebook until this is resolved. Thanks!

Brian
Вопрос задан около 2 нед. назад
Roberto

Someone else with the same problem as me. The Sharing Debugger has been malfunctioning since the start of September, and Facebook has yet to check in on it.

18 сентября в 15:00
Выбранный ответ
1

Can someone rom Meta please chime in on this? It has been up for 6 days and hasn't been reviewed at all.

25 сентября в 08:07
Brian