Page MenuHomeMiraheze

Twitter and Facebook won't fetch article previews
Open, NormalPublic


Since we moved to Miraheze, Twitter no longer previews linked articles and Facebook only shows an image but no text. On Fandom it happened automatically. This has probably something to do with SEO meta-tags, so I wondered if you could do something to make the whole wiki more compatible with social media without having to tag every single page we want to post (I don't know, I'm a total noob on such things).

Event Timeline

Wedhro created this task.Apr 15 2019, 07:10
Paladox added a subscriber: Paladox.Apr 16 2019, 13:37

Hi, do you know which page is having the problem?

Wedhro added a comment.Apr 16 2019, 13:44

I posted 3 pages after moving and none of them got previewed, it's:

I see Facebook is kinda working, but I need more tests. Twitter isn't, and I read it needs "Twitter cards" i.e. meta tags, but I have no idea how it's done and doing it it for every single page is out of question anyway.

Paladox added a comment.Apr 16 2019, 13:54

You may be interested in (which we have as a available option at miraheze)

Wedhro added a comment.Apr 16 2019, 13:59

I know but it seems like it's only done by inserting the tags inside single pages, which is not doable on a wiki so big (not to mention such a delicate piece of info on pages anyone can edit). Isn't there something you can do upstream? Wikia probably did because before moving we had previews without having to do anything.

revi added a subscriber: revi.May 7 2019, 15:50

Maybe this with OpenGraphMeta could work on wiki-level, but hasn't tested.

Paladox added a comment.Jun 29 2019, 15:45

Did you manage to resolve this? Or is it still a problem?

Wedhro added a comment.Jun 30 2019, 15:04

Previews work normally on Facebook but on Twitter no preview is shown.

revi added a comment.EditedAug 27 2019, 06:30

That is because Twitter uses Twitter Cards, not OpenGraph (which is Facebook protocol).

Wedhro added a comment.EditedAug 27 2019, 09:29

@revi I know, but "Simply add a few lines of markup to your webpage" is a pain in the neck when instead of posting your homepage you have to post 1 out of thousands of single pages and you can't add HTML code not accessible to random visitors. I thought about using a template but I can't protect a page just because we need to post it on Twitter. It's basically unfeasible on a wiki, so maybe too bad for them, we'll just use Facebook.

Anyways, I wonder how Wikia managed to add those Twitter cards automatically to all pages of all their websites.