Benunc / better-click-to-tweet

Gutenberg-ready WordPress Plugin for adding Click To Tweet boxes to Posts and Pages
https://www.betterclicktotweet.com
21 stars 22 forks source link

Twitter preview not working #102

Open osujedi-99 opened 2 weeks ago

osujedi-99 commented 2 weeks ago

Hi, we have a problem recently. The click to tweet function seems to be working, but the link previews are not when I go to the Twitter site. Any idea what might be causing that? When I go to the twitter composer, the link preview sort of hangs.

Any idea what might be causing that?

Screen Shot 2024-08-28 at 5 59 21 PM
Benunc commented 1 week ago

Hey @osujedi-99

The thing you have circled in the screenshot there is not the link preview, it's the Character counter.

The preview will likely not unfurl until after the post is live on X.

osujedi-99 commented 1 week ago

Hi Ben

Actually, the links were not unfurling after the post is live.

I might have circled the wrong thing, but the link preview wasn't displaying.

On Tue, Sep 3, 2024 at 10:17 AM Ben Meredith @.***> wrote:

Hey @osujedi-99 https://github.com/osujedi-99

The thing you have circled in the screenshot there is not the link preview, it's the Character counter.

The preview will likely not unfurl until after the post is live on X.

— Reply to this email directly, view it on GitHub https://github.com/Benunc/better-click-to-tweet/issues/102#issuecomment-2327045725, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ6R3H6J5OHMBQZ2Y76HSBTZUXVJZAVCNFSM6AAAAABNJLS3P2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRXGA2DKNZSGU . You are receiving this because you were mentioned.Message ID: @.***>

Benunc commented 1 week ago

Interesting!

I just tested on this article of your site, and I am seeing the preview even before posting:

CleanShot 2024-09-04 at 08 15 30

So then I went to the article from your screenshot above, to test. It also works:

CleanShot 2024-09-04 at 08 18 23

That rules out a wider problem and points to either Twitter/X putting some sort of limit on your particular account, or some caching on your browser maybe?

A lot of times if you've visited the site before that particular article had og tags (which is what creates that preview) that gets cached and the previews won't work for you. But it's working for everyone else.

To confirm that, try it in a different browser or different machine and see if the preview works.

If you get me a spot where the problem is reproducible, I can have a deeper look!

Benunc commented 1 week ago

Sidenote: great use of copy in those callouts. made me want to go read the article in both cases. 😄