node.jsreactjsfacebook-opengraphshare-open-graph

How to extract metadata & open graph info when paste a link?


I'm building a sort of sharing system where users can paste links and share with their friends.

I want to be able to extract information like title, description and images when the user pastes a link. Would be similar as Facebook or LinkedIn.

The system has a "sharebox" where the user write a comment and pastes a link. Before save it, I need to retrieve some metadata to complete the basic information about the link.

I'm building the system with ReactJS backed by a REST API in NodeJS. Does anyone know about a package or library to do this?. Should be done in the Frontend, or needs interaction with the backend?.

Thanks.


Solution

  • Finally http://embed.ly/ did the trick for me!.