Media entity creation failed. Invalid oEmbed resource

Created on 4 January 2021, almost 4 years ago
Updated 7 February 2023, almost 2 years ago

Problem/Motivation

Creation media entity failed due to validation of field Instagram URL (field_media_oembed_instagram_1) with message "The provided URL does not represent a valid oEmbed resource"

Steps to reproduce

1. Download and install module using composer
2. Set "App id" and "App secret" in /admin/config/media/instagram-settings
3. Add new media type /admin/structure/media/add

  • Media source = Instagram
  • Field with source information = Create

4. Add new entity instance /media/add/{new name}

Results:
1 error has been found: Instagram URL
The provided URL does not represent a valid oEmbed resource.

Direct API request working well

https://graph.facebook.com/v9.0/instagram_oembed?url=https://www.instagram.com/p/CAYbO7MANtt/&access_token={app id}|{app secret}
🐛 Bug report
Status

RTBC

Version

3.0

Component

User interface

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024