Problem/Motivation

This document explains how to use the new Facebook oEmbed endpoints. These endpoints are replacing the old oEmbed endpoints which are being deprecated on October 24, 2020.

If you are migrating off of the old endpoints, make sure to read this document in its entirety since the endpoint paths and their requirements have changed.

You may receive intermittent HTTP 400 errors from the legacy endpoints that will be deprecated on October 24, 2020. These are part of the internal migration process and can be resolved by retrying your request. More information below.

Media entity Instagram 3.0.0 was released 17 Sep 2020 at 10:26 EEST
https://www.drupal.org/project/media_entity_instagram/releases/3.0.0

oEmbed Endpoints for Embeddable Facebook Content (Legacy)
https://developers.facebook.com/docs/plugins/oembed-legacy

Facebook will shut down its current oEmbed API in October 24, 2020. From that point, the 8.x-1.x and 8.x-2.x will not work anymore and will be discontinued.

https://wptavern.com/upcoming-api-change-will-break-facebook-and-instagr...
https://www.drupal.org/project/media_entity_instagram

Varbase Media is using "drupal/media_entity_instagram": "~2.0",

Proposed resolution

Switch to "drupal/media_entity_instagram": "~3.0",
Make sure that we do have an upgrade path for configs
Follow the new Facebook oEmbed

Remaining tasks

  • Update the media_entity_instagram module
  • Change default config
  • Update hook
  • Test
  • Release

User interface changes

N/A

API changes

A new Facebook API

Data model changes

Researching the oEmbed Endpoints for Embeddable Facebook Content (Legacy)
https://developers.facebook.com/docs/plugins/oembed-legacy

Comments

RajabNatshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

  • RajabNatshah committed ea6af33 on 9.0.x
    Issue #3176626: Update [Media entity Instagram] from ~2.0 to ~3.0
    

  • RajabNatshah committed 36b6847 on 8.x-7.x
    Issue #3176626: Update [Media entity Instagram] from ~2.0 to ~3.0
    

  • RajabNatshah committed 1d95cd8 on 8.x-7.x
    Issue #3176626: Change default config after the update for [Media entity...
rajab natshah’s picture

Issue summary: View changes

  • RajabNatshah committed c9207f7 on 9.0.x
    Issue #3176626: Change default config after the update for [Media entity...
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
StatusFileSize
new108.52 KB
new86.9 KB

If you test with Drupal 8 core only

The Facebook credentials have not been configured. Please visit the settings form .
The provided URL does not represent a valid oEmbed resource.

To use this module you need a Facebook developer account. In the your Facebook developer dashboard you have to create an App that uses the oEmbed API.

they do have a new custom field name

Instagram URL
field_media_oembed_instagram
Text (plain)

In Varbase we use

Instagram
field_media_instagram
Text (plain)

No change of storage configs format in varbase_media_instagram

The change is in the source, and form Display and view Display
The sourece was changed from instagram to oembed:instagram
Any custom code should follow the new Facebook - Instagram API Standard for the new oEmbed

rajab natshah’s picture

Aftar having a config for APP ID and App secret

The provided URL does not represent a valid oEmbed resource.

  • RajabNatshah committed 2de9d02 on 8.x-7.x
    Issue #3176626: Update [Media entity Instagram] from ~2.0 to ~3.0
    

  • RajabNatshah committed e880493 on 9.0.x
    Issue #3176626: Update [Media entity Instagram] from ~2.0 to ~3.0
    
rajab natshah’s picture

rajab natshah’s picture

Assigned: rajab natshah » mohammed j. razem
Issue summary: View changes
Issue tags: -varbase-9.0.0-alpha1 +varbase-9.0.0-alpha2

Many issues

cURL error 7: Failed to connect to graph.facebook.com port 443: Connection timed out (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

and a slow load of pages
Could not retrieve the remote URL
everywhere used in fields

No issues with CKEditor Media Embed plugin

The update hook is doing what is wanted to update the source

media_entity_instagram module :
Rename source from "instagram" to "oembed:instagram".
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Status: Active » Fixed
rajab natshah’s picture

rajab natshah’s picture

Issue tags: -varbase-9.0.0-alpha2 +varbase-9.0.0-beta1

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.