Android Question How can I get a preview from a link?

asales

Expert
Licensed User
Longtime User
When I paste a link from a website or Youtube video in WhatsApp, I get a preview with an image and a little text.
How I can do this in B4A? And show it, for example, in a customlistview?
What do I need to get this informations?
TIA

previsua1.jpg
 

Pendrush

Well-Known Member
Licensed User
Longtime User
You need to add meta OG tags in webpage.

Minimal example:
HTML:
<meta property="og:title" content="Relaxing Whiskey Blues Music">
<meta property="og:description" content="Music is also used for what you say, not just for entertainment">
<meta property="og:url" content="https://www.youtube.com/watch?v=vTkUlqFqWpc">
<meta property="og:image" content="https://i.ytimg.com/vi/vTkUlqFqWpc/maxresdefault.jpg">
 
Last edited:
Upvote 0
Top