pjosephraj
7/12/2017 - 9:00 AM

Open Graph

Open Graph

const apiUrl  = 'https://opengraph.io/api/1.0/site';
const appId   = '58858c7bcf07b61e64257391'; 
fetch(url) // Call the fetch function passing the url of the API as a parameter
    .then(res => res.json())
    .then(data => console.log(data))
    .catch(err => console.log('Error: '+ err));