Skip to content

v1.14.0

Latest
Compare
Choose a tag to compare
@shobhitsharma shobhitsharma released this 30 Oct 20:14
· 3 commits to master since this release
  • Fixed support for new oEmbed endpoints recently released by Facebook's Graph API
  • To embed facebook or instagram posts, it is required to set access_token property globally or in single instance. This will automatically injected to all embed URLs called with the embedo's instance. No breaking changes.
// facebook initialize options
new Embedo({
  facebook: {
    appId: {your-app-id},
    access_token: {your-app-id|your-client-token}
  }
});

// instagram initialize options
new Embedo({
  instagram: {
    access_token: {your-app-id|your-client-token}
  }
});

PR: #26 / bundle-size: 6.9kb / demo: codepen