Discourse published pages not oneboxing correctly

They seem to be missing the “image” tag. I’ve noticed the same error for many sites I try and onebox (usually the more amateur ones), but we really should have this sorted ‘in house’!

It does onebox just fine, I believe the only “bug” is that the message is wrong:

Sorry, we were unable to generate a preview for this web page, because the following oEmbed / OpenGraph tag could not be found: image

should be

Sorry, we were unable to get an image for this web page preview, because the following oEmbed / OpenGraph tag could not be found: image.

Thanks Rafael - yes it does onebox okay. Why can’t it get the image?

Because the target page doesn’t have the necessary tag, which is literally what the error tells you:

because the following oEmbed / OpenGraph tag could not be found: image

Our blog is Wordpress, and it doesn’t have the image tag setup for this post.

I don’t see how this is a bug on Discourse :thinking:

Ah - I foolishly assumed that you used the Discourse published pages feature for your blog.

Is the image tag on your Wordpress site unfixable? Because it looks a bit silly to have that error in a Discourse onebox to a discourse.org blog!

1 Like