Is there open-source code for making 'link preview' text and icons, like in facebook?

21,512

Solution 1

After a bit of Googling I found this for you.

It should take you through the steps on how to create something similar to Facebook share previews.

Solution 2

Embedly provides a powerful API to convert standard URLs into embedded videos, images, and rich article previews.I Searched and found an easy way to do it.

Just make a Get request to http://api.embed.ly/1/oembed?url=YOUR-URL . You will find everything in json Format.

Solution 3

Have a look at bootstrap-linkpreview js library as well. It should fit exactly your needs.

Share:
21,512
Ben Clayton
Author by

Ben Clayton

Technical Director of Calvium, a Bristol, UK Digital Agency. We create cloud-based web and mobile solutions with TypeScript/JavaScript, React, React Native, AWS, Azure and FireBase. http://www.calvium.com

Updated on January 17, 2020

Comments

  • Ben Clayton
    Ben Clayton over 4 years

    In facebook, when you share a link, a neat little preview is created with an image headline, and text excerpt. Here's an example..

    Example Link

    Does anyone know if there's any open-source code (pref. php & javascript/jquery) that can generate something like this? Or should I just write it myself..

    Cheers!

  • dark_passenger
    dark_passenger almost 8 years
    Can you please tell me how it can be achieved in python?
  • iZeeshan
    iZeeshan over 7 years
    You can see this demo in real action at wallscriptclone.com
  • B T
    B T about 7 years
    This is neither code nor open source