Dang, I’ll re-add this plugin next rebuild and hopefully it was just some temporary weirdness. Thanks again and sorry for the goose chase!
No worries, it’s always good to take a look at this plugin once in a while.
And on that note I’ve upgraded the structure of the plugin and added a minor tweak to the overrides to take account of a one-liner change in core (but was working prior to this in any case):
Update to keep up with Discourse resolving a breaking change:
I’m trying to get this site to Onebox:
However, I get a code of 403 when using the standard Discourse oneboxing:
I confirmed that it will deliver a onebox on embed.rocks/try, and it does:
I’ve trawled this topic but can’t find anything that helps. Any suggestions?
That’s not a Onebox. Onebox is specific to Discourse so this doesn’t prove out enough. Embed.rocks is using all kinds of special cases and workarounds that are not a mirror of what Discourse is doing. We don’t use it to generate cards, so this is irrelevant for us, and it means you can’t use this as a safe test. We only use embed.rocks to return the original page source.
Have you checked the link on the
Inspired by your post, I did spend some of my Sunday refactoring the plugin as it appears the Onebox gem has migrated into Core.
I don’t believe this was your issue, though as my overrides were working I believe, but now they are more thorough.
If you could please update and test this (version 3.0) I’d be grateful:
I’ve enabled the plugin, but I can’t have Facebook oneboxes working. Is that expected? Did I misconfigure the plugin?
edit: a curl returns the famous “Log in or sign up to view”, and no box is created.
So, embed.rocks uses IPs that don’t have a reputation high enough for Facebook?
Is there a facebook embed format with a facebook api key?
We can embed some Facebook posts for sure (only from public user profiles, not groups)… There’s also an API key used to embed Instagram posts…
But I’m not aware of something else. But there is something to be found in the developer dashboard, that’s quite a maze
Are you sure that link is to a publicly exposed Facebook post?