This module adds Open Graph Protocol metadata to tweet URLs sent inside a MUC.

It’s similar to mod_ogp but is adapted specifically to, which doesn’t support the Open Graph Protocol.

When a user sends a tweet URL in a MUC (where the message has its id equal to its origin-id), this module calls that URL to get the tweet data. If it finds any, it sends a XEP-0422 fastening applied to the original message that looks as follows (note, I haven’t used real data here):

    <message xmlns="jabber:client" to="" from="" type="groupchat">
        <apply-to xmlns="urn:xmpp:fasten:0" id="82dbc94c-c18a-4e51-a0d5-9fd3a7bfd267">
            <meta xmlns="" property="og:article:author" content="TwitterCritter" />
            <meta xmlns="" property="og:article:published_time" content="2021-06-22T06:44:20.000Z" />
            <meta xmlns="" property="og:description" content="I'm in ur twitterz" />
            <meta xmlns="" property="og:image" content="" />
            <meta xmlns="" property="og:title" content="TwitterCritter" />
            <meta xmlns="" property="og:type" content="tweet" />
            <meta xmlns="" property="og:url" content="" />
        <stanza-id xmlns="urn:xmpp:sid:0" by="" id="90e8818d-390a-4c69-a2d8-0fd463fb3366"/>


You’ll need to provide a Twitter APIv2 bearer token.

Component "" "muc"
  modules_enabled = { "tweet_data" }
  twitter_apiv2_bearer_token  = { "some-very-long-string" }


With the plugin installer in Prosody 0.12 you can use:

sudo prosodyctl install --server= mod_tweet_data

For earlier versions see the documentation for installing 3rd party modules