Closed jpetto closed 8 years ago
@alicoding did we ever figure this out?
@jpetto is it as simple as there is no opengraph data on that page?
@jbuck no, but for our staging is still seem to be broken and our prod for donate.mozilla.org works perfectly. I think this is something has to do with CDN or something I'm not sure.
There is definitely open graph data on the pages. I put a static version of the page up yesterday for testing, which Facebook's debugger scrapes successfully.
I'm going to run an invalidation on the CDN just to be sure it didn't cache anything it shouldn't have...
Man, I have no frigging clue why it's doing this.
One curious piece of data from the Facebook debugger is that the response code (for both /data-retention/
and /stay-secure/
) is 206 (partial content).
Doing a little more digging, I see the following header included when running curl -I https://petitions.mozilla.org/stay-secure/
:
Accept-Ranges: bytes
Based on a whole 10 minutes of research, this header and a 206 response code go hand-in-hand. Also, it seems this header is generally used for streaming large content (e.g. videos). Is there a specific reason to include this header? Would it be difficult to (possibly temporarily) turn it off?
Final observation before lunch - donate.mozilla.org (which @alicoding says is fine in this regard) does not appear to have the Accept-Ranges
header set.
@jpetto fascinating! Okay, I'll see if I can figure out why that is.
@jgmize found a related bug. Might be of some help, but I still would like to see what happens when that Accept-Ranges
header is removed.
Just checking in - any update?
@jpetto um, I don't know why, but it appears to be working better now: https://developers.facebook.com/tools/debug/og/object/?q=https%3A%2F%2Fpetitions.mozilla.org%2Fstay-secure%2F
Should we add the FB share button back?
Well, that certainly is curious. :confused: I'd love to know why it's suddenly working...
Anyway, yeah, I'll make a PR to re-add the FB button.
@jbuck Should we leave this issue open until we know why things weren't working and then suddenly were? Or just chalk it up to Facebook being a black box and close? Your call.
Facebook is a black box alright :/
There's a fix in Hapi 13 for this now: https://github.com/hapijs/hapi/commit/0c8109e1b573528bfebea771da6a83d1f5bf7043
While testing the Facebook share button on the newly pushed
/stay-secure/thank-you/
page, noticed that no Open Graph information is being shown/populated on the resulting Facebook share page.Tried to debug the URL using Facebook's Open Graph object debugger, which returns no open graph information about the page at all. The "See exactly what our scraper sees for your URL" link results in a blank page. Tested
https://petitions.mozilla.org/data-retention/
as well with the same results. :disappointed:Sharing is an important part of the Data Privacy Day campaign launching today.
@jbuck @ScottDowne - Any ideas here?