Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Facebook link previews for self-branded platforms #132

Closed
tanius opened this issue Feb 28, 2018 · 2 comments
Closed

Fix Facebook link previews for self-branded platforms #132

tanius opened this issue Feb 28, 2018 · 2 comments
Assignees

Comments

@tanius
Copy link
Member

tanius commented Feb 28, 2018

The screenshot below shows a (newly generated) Facebook link preview when posting the link to the homepage of the first self-branded platform based on edgeryders.eu on Facebook.

screenshot facebooklinkpreview 2018-02-28

So the remaining problem here is that the domain is shown as edgeryders.eu and not biofabforum.org as the link posted to Facebook. This is probably contained in some oEmbed meta information in the HTML of the page. Any quick way to solve this?

(Also Facebook shows HTML code in the preview. This is however a general Discourse bug, so also on edgeryders.eu, when posting category page links to Facebook. Does not happen with links to posts / topics, which is the normal use case. We'll ignore this issue here of course.)

@damingo
Copy link
Member

damingo commented Feb 28, 2018

I added <meta property="og:url" content="https://biofabforum.org/c/biofab" /> in the template head section. If this doesn't solve it, it will take more time to fix it, as meta tags are generated by Ember.

@tanius
Copy link
Member Author

tanius commented Mar 21, 2018

Solved now according to my tests, thanks!

Sporadically, users told that they still see Edgeryders elements in Facebook link previews, but (1) it's rare and (2) we'll have to wait for a reproducible case to be able to fix this. Could still be cached previews that Facebook generated before the fix above was deployed.

@tanius tanius closed this as completed Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants