Extension talk:TwitterCards

About this board

500 Internal Server Error

1
Cojoilustrado (talkcontribs)
Reply to "500 Internal Server Error"
GrandTurion (talkcontribs)

`require_once "$IP/extensions/TwitterCards/TwitterCards.php";`


this file is not there... (tried both the 1.38 and the master versions)

Reply to "Does not work"

ERROR: No card found (Card error)

1
Bekircem (talkcontribs)

I setup TwitterCards. But when i check my Mediawiki page on the Twitter Cards Validator i see it:


INFO:  Page fetched successfully

INFO:  6 metatags were found

ERROR: No card found (Card error)

Reply to "ERROR: No card found (Card error)"
Thecryptochat (talkcontribs)

I have added this extension along with the OpenGraph extension. This extension does not load any Twitter Tags. The opengraph extension loads og tags minus the image tag. I have tried everything I know to do. Any help would be greatly appreciated at this point.

X-Savitar (talkcontribs)

Concerning the Twitter card, are you the owner of this extension? If not, can you share a link to your own TwitterCard extension and/or a link to the OpenGraph extension so we can have a look? Here is the TwitterCard extension I know of: Extension:TwitterCards.

Thecryptochat (talkcontribs)

I am talking about the Extension you linked to above. This extension seems to have no affect on my site and its not adding the twitter tag to the metadata. Also the OpenGraph extension I am talking about is Extension:OpenGraphMeta This extension seems to work minus the image tag. I have tried everything to get the image tag working for OpenGraph but nothing seems to make a difference.

X-Savitar (talkcontribs)

Okay! Thanks so much for your reply. One thing to note is that the TwitterCards extension is incomplete and as you can see, it's under experimentation. As for the OpenGraph extension, I have never used it but if you can understand MediaWiki extension, then you can add that functionality (image tag) into the extension to fulfill what you want to do. But try getting in touch with both extension developers and work with them.

You can ask on #wikimedia-dev IRC channel on FreeNode, that's the power house of Wikimedia Developers. I am currently unstable but when I have time, I will try to give you some consistent help.

Reply to "No Twitter tags added"

Doesn't add Twitter tags

1
MorbidEntree (talkcontribs)

It had no effect when I installed this. Is there an extra step somewhere?

Reply to "Doesn't add Twitter tags"

Breaks user script and stylesheet pages

3
SoledadKabocha (talkcontribs)

On a non-Wikimedia Foundation wiki I use, this extension caused the following error message when attempting to view, edit, or get history for any page that is user CSS or JS:

MediaWiki internal error.

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

...until the administrator "configured LocalSettings.php not to load TwitterCards on pages whose title begins with User: and ends with .css or .js." (I am not the server administrator, so I am unable to provide further details at this time.)

I have not yet tested whether CSS/JS in the MediaWiki: namespace is affected, as no such scripts or stylesheets exist on said wiki.

Should the extension itself be modified to avoid CSS/JS pages similarly? --

Damian Yerrick (talkcontribs)

This is the workaround I came up with. With my luck, I'm probably doing it all wrong:

$lstitleext = strtolower(strrchr(@$_REQUEST['title'], '.'));
$lsiscss = $lstitleext === '.css' || $lstitleext === '.js';
$lsisuser = explode(':', strtolower(@$_REQUEST['title']));
$lsisuser = $lsisuser[0] === 'user';
if (!$lsisuser || !$lsiscss) {
  require_once "$IP/extensions/TwitterCards/TwitterCards.php";
}
71.202.162.80 (talkcontribs)

Thanks for the report, this is filed as phab:T102897 now. Please note that the extension is still in an experimental state.

Reply to "Breaks user script and stylesheet pages"
Edmundopg (talkcontribs)

If I install it, what and how will do?

Legoktm (talkcontribs)

It attempts to enable TwitterCards display of tweets by adding a bunch of proprietary tags to your HTML output.

Edmundopg (talkcontribs)

Ok, but how to add that tags? Just like documentation of Twitter Cards says?

Legoktm (talkcontribs)

If you install the extension, it'll add the tags.

Reply to "What this do?"
There are no older topics