The discussion revolves around Twitter onebox images as topic thumbnails. ElliSol reported that previews for tweets don’t show when linking tweets in topics, despite having the preview plugin installed. david suggested configuring rich embeds, which requires setting up Twitter login and rich embeds for Discourse.
ElliSol shared an example link, but the onebox didn’t work. merefield clarified that the Topic List Previews plugin only impacts topic lists, and a onebox in the topic is a prerequisite. ElliSol shared a screenshot of the issue and confirmed that the topic list previews work for some sites but not others like Twitter.
merefield and david suspected that the thumbnail size was too small or that the rich Twitter onebox wasn’t working. david advised checking if Twitter consumer key and secret were configured in site settings.
After trying various solutions, ElliSol still didn’t see changes. david suggested rebuilding HTML on the post with the onebox, which ElliSol confirmed worked, along with merefield’s suggestion to add a redundant query string to the URL. The onebox and topic list previews for Twitter links now work, although with a slight delay due to Sidekiq processing.
I have the preview plugin installed and I noticed that some previews show but others don’t. Previews for tweets especially don’t show at all when I link tweets in my topics. The same thing happens for videos shared form Vimeo. My friend asked a few days ago and was told it’s not an issue with the plugin but with the discourse software itself.
Here’s my friend’s post:Topic List Previews (legacy) - #1265 by xioian
Is there any way to actually make all the previews how?
Large images from twitter embeds should work. But I think you will need to configure this: (read the section at the bottom of the OP about rich embeds):
Yes, I did follow the steps David linked but it seems like it didn’t have any effect. The topic list previews do work for some sites but not for others such as Twitter. There was also a video that I linked from Vimeo but it didn’t have a preview.
Yeah that screenshot looks like you don’t have the ‘rich’ twitter onebox working. Are you sure you have twitter_consumer_key and twitter_consumer_secret configured in your site settings?
@merefield@david Thank you so much, both methods worked! I now see Onebox and the topic list previews for Twitter links, it’s just delayed a bit but then it shows up. Thank you!