No open graph link previews for Mozilla and Firefox URL's

I just noticed that in a post no link previews are generated for Mozilla and Firefox URL’s, while and both show all metadata is in place:

(first posted here, but this is a separate, maybe related issue)

The last few times we looked at similar issues, the target site had blacklisted most user-agents; this was on WP-Engine.

I don’t understand what you mean by target site. Are you saying that Mozilla / Firefox blocked Firefox browsers (I use FF) from generating the link preview? Or that the target site (that would be Discourse in this case, both Meta and our forum) does the blocking?

Edit: On the linked post, I had troubles getting LinkedIn to generate a preview, but for the URL’s above LI is working fine. If LI is able to generate the preview (they use open graph too) shouldn’t Discourse be able to do that too?

The onebox is made server side, so it’s not your browser that was blocked bout the Discourse server up, or the Discourse request user agent.


Thx, for mentioning onebox, I see it in code now: and what is used as User-Agent probably "Discourse Forum Onebox v#{Discourse::VERSION::STRING}"


Yes, you can use that info to try and repro the error with a curl that uses that user agent.


It is a pity you are having this problem. I can imagine now it occurs on many sites. Since the preview is generated on behalf of a forum users, and as part of a request send to your server, couldn’t you just forward the User-Agent of that particular user? Or is that a no-no (one IP, differing user-agents). Or use a common, fixed User-Agent (but remote can’t see it is onebox then)?