Does anyone know if it's possible to make an iMessage link preview like Twitter?
Asked Answered
G

2

5

I have tried every combination of og:type, og:description, og:title as well as other tags and can not come up with a preview like twitter does on iMessage. I'm thinking this preview may be hardcoded only for Twitter? The top image is what I want, the bottom image is all I can get.

enter image description here

Giveaway answered 27/9, 2022 at 5:39 Comment(0)
G
6

I discovered that Twitter is in fact hard coded into the link presentation framework in iOS. You can see the strings found in the LinkPresentation framework.

enter image description here

enter image description here

Giveaway answered 4/10, 2022 at 4:8 Comment(3)
Which file is this in exactly?Tatter
The executable file for LinkPresentation.frameworkGiveaway
Wow, great find. I had the exact same question but didn't think to dig this deep. Wish Apple would give other links this UI functionality too.Plexiglas
R
0

Did you try this ?

<meta name="twitter:card" content="summary_large_image"/>

<meta name="twitter:image" content="Your Website Title"/>

<meta name="twitter:title" content="Your Website Link"/>

<meta name="twitter:description" content="Some description…."/>
Rogation answered 3/10, 2022 at 8:53 Comment(1)
Does not work, discovered apple has twitter hard coded in.Giveaway

© 2022 - 2025 — McMap. All rights reserved.