Hello, we are testing out Twitter Card implementation, but have noticed that our twitter card image is not displaying on our website’s timeline feed.

In a nutshell, our timeline uses the API 1.1 to output JSON, which then gets parsed with javascript, based on this tutorial:
https://tomelliott.com/php/authenticating-twitter-feed-timeline-oauth

Our JS looks for the “extended_entities -> media_url_https” value in the JSON to display the tweet image in the timeline. However, the tweets created via Twitter cards has no such value that gets passed to the JSON, resulting in a missing or wrong image. The title & description gets passed, but the image is nowhere to be found in the JSON output.

Is there any way to get that image data to be sent to the JSON output?

Any/all help is appreciated.

Unfortunately Twitter cards and the support image and title data are not served through the API. If you used the Twitter embedded timeline widget instead of building your own embeds, cards would be shown.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.