• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Sharing Thread on Twitter via Social Links

Infopro

Active member
#1
Affected version
2
I shared today's XF2 announcement on twitter by clicking the twitter link at bottom of the thread. The link works when clicked at bottom of thread, but the post on twitter is just a link and the text I added. No image of any sort is carried over from your forum.
 

Chris D

XenForo developer
Staff member
#2
Could you provide an example URL from another site which produces the desired results?

We do provide a twitter:image tag but their card validator doesn't pick it up. There may be aspects missing, but if we can compare it to a working site, that would help.
 

Chris D

XenForo developer
Staff member
#4
They were mostly posted via and link back to Facebook so it's picking the image up from there.

I'll look into it anyway, thanks!
 

Infopro

Active member
#6
Thanks. I removed the "via @XenForo" bit from the tweet before submitting it, thats why that's missing. I was hoping for a tweet like this one of course:

xenforotweetwimage.png
 

Mike

XenForo developer
Staff member
#9
This is fixed now. We were missing the twitter:card attribute to push it to show a "summary" type.
 

Infopro

Active member
#10
Thanks, Mike. I deleted the tweet and reposted it just now almost identically to test the fix. Seems the same to me, no image just a link.