Twitter embeds working on web posts, but not in emailed newsletter. Web embeds get the whole thing: picture, text, even quoted tweets. Embeds in same post sent as email only show text as a blockquote.
Is this a known problem? Or is there a solution I’ve missed?
Twitter only provides a small <blockquote> and <script> tag in its embed. Scripts don’t work in email which is why you only see the short quote.
Ghost can integrate with Twitter’s API to fetch the additional data needed to display a better email version but if you’re self-hosting you’ll need to create a Twitter Developer account and get a read-only API key. Once you have that you can update your config file:
If you’re on a hosted service such as Ghost(Pro) then this may already be handled for you. If you are on Ghost(Pro) and it’s not working please email support@ghost.org
The “twitter” block needs to be at the top-level in the config file as shown in the example but the ordering with other top-level blocks doesn’t matter.
FWIW – I got the API key (the one marked API Key and Secret) and put the API key in the “config” section of package.json, using the syntax you posted. But, still not getting anything but text in tweets embedded in emails.
Do I need to post that part of the package.json file so you can check it out?