node-open-graph icon indicating copy to clipboard operation
node-open-graph copied to clipboard

It doesn't get any matadata from Twitter.

Open lipis opened this issue 4 years ago • 3 comments

At the moment for any Twitter URL the only thing that is being returned is:

{
  "site_name": "Twitter",
  "title": ""
}

Probably something changed on the Twitter side.

lipis avatar Feb 10 '20 11:02 lipis

Taking this URL as an example: https://twitter.com/elonmusk/status/1224938416795717634

There appears to be only <meta property="og:site_name" content="Twitter" /> from the source and no <title> tag from the source. Twitter's web app must be an SPA without SSR.

In order to get the right data, client-side rendering would need to be introduced into the data processing pipeline.

samholmes avatar Feb 10 '20 23:02 samholmes

Seems like Twitter is not rendering og tags anymore, see OpenGraphCheck results. The site wants you to execute JavaScript, if you don't do that, you just get a landing page.

But it works if you set Twitterbot/1.0 as User-Agent. :)

ffflorian avatar Jul 06 '20 12:07 ffflorian

Yep, the above comments are correct. Twitter is running as a SPA and does not provide meta tags as a part of the web application, so Twitter links won't return og metadata.

See: https://stackoverflow.com/questions/62526483/twitter-website-doesnt-have-open-graph-tags

kevinhaube avatar Feb 08 '23 00:02 kevinhaube