How to make image display when link is inserted in skype

I am a frequent user of Skype, and I realized that when you insert a link in Skype im using a desktop application for this , for example, YouTube, the thumbnail is displayed in the chat.

So, I was wondering if there is a certain type of class or area in my code, whether CSSor PHPso that Skype scanners (if any) select the image and display it in the chat. - Since this is a commercially authorized thing to add to your site.

I looked Skype Developersat the area on the site and on the Microsoft site, and there was no information in my topic.

+4
source share
1 answer

Skype, Facebook and others use the Open Graph Protocol to get them. More information on the Open Graph Protocol can be found on the Internet and a small code to achieve it:

<meta property="og:image" content="/image.jpg"/>
<meta property="og:image:secure_url" content="https://mywebsite.com/image.jpg" />

These two must be present in the tag <head />. Also add the XML NameSpace to the tag <html>:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og="http://ogp.me/ns#"
      xmlns:fb="https://www.facebook.com/2008/fbml">  

You can also use multiple images, you just need to add several image meta tags in the order in which you want them to be displayed. The user will then be presented with a Facebook image selection dialog.

+5
source

All Articles