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

react jquery (4)

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

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..



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 . You will find everything in json Format.

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.

Surely what you actually care about is that the val method gets called on the return value of $(“input#ResultTestBox”)—you don't need to test the functionality of the jQuery method itself. Why not inject a mock implementation of the jQuery object and test against that?

php jquery facebook javascript