Skip to main content

Checker for oEmbed Providers

oEmded

Platforms like youtube allow a request to a special crafted link to obtain the embed code. 

  • If a valid response is returned, the link is marked as valid. It is possible to embed the content, so it's possible to link to it as well.
  • Some content can't be embedded. For YouTube a creator can disable embedding for some or all videos
  • If no valid response is returned, a normal request is performed

Facebook

Facebook does not respond with a 404 code on wrong URL's. 

Facebook doesn't provide oEmbed information either. However, it allows embedding the feed using an iframe.

How this checker works for Facebook:

  1. First, the URL is checked using the normal Checker. This is to resolve any redirects.
  2. If the last redirect is to the login page, the next from that link (https://www.facebook.com/login/?next=https%3A%2F%2Fwww.facebook.com%2Ffietsvierdaagsen%2F) is used as final destination.
  3. With that final destination, the iframe is requested. For an existing page, the response is slightly different then for a non-existing page.
  4. If the check fails, the status is set to broken with a custom code 435 (Provider lookup failed).

Some Facebook pages do not allow embedding, those will fail. Unfortunately, it seems impossible to distinguish between a non-existing page and a private page.

Options & Settings

Check for oEmbed Only

If the oEmbed request fails, the checker continues with a normal check on the destination page.

Enabling this option will verify that the content can be embedded.

Enable this option if you, mostly, embed content. This ensures that the embedded content shows up on your site.

Disable the option if you link to destinations mostly.

This option has no effect on Facebook links, since the iframe response is used to check for valid pages.

Youtube/Google API key

The Youtube API is probably the best method to get information about a Youtube video. To use the APi you will need an API key for Youtube V3, you will need an API Key not an OAuth 2.0 Client IDs or Service Account

For a company that demands perfection from every webmaster when it comes to comprehensible and clear information on a website, the manuals they write are extremely vague, incomplete and, if you are lucky, fairly outdated.

Facebook App ID

A Facebook App ID is required to check properly for working pages.

  • Go to https://developers.facebook.com. If you're not already signed in, click Log in at the top-right to sign in now.
  •  
  • You can now add a new 'Authenticate and request data from users with Facebook Login' app. Follow the steps and in the end you will have access to a 15 digit ID.

(Facebook isn't a lot better, compared to google, regarding their information and manuals.)