diff --git a/src/Adapters/Facebook/OEmbed.php b/src/Adapters/Facebook/OEmbed.php index 84d57726..a706df02 100644 --- a/src/Adapters/Facebook/OEmbed.php +++ b/src/Adapters/Facebook/OEmbed.php @@ -8,9 +8,9 @@ class OEmbed extends Base { - const ENDPOINT_PAGE = 'https://graph.facebook.com/v11.0/oembed_page'; - const ENDPOINT_POST = 'https://graph.facebook.com/v11.0/oembed_post'; - const ENDPOINT_VIDEO = 'https://graph.facebook.com/v11.0/oembed_video'; + const ENDPOINT_PAGE = 'https://graph.facebook.com/v18.0/oembed_page'; + const ENDPOINT_POST = 'https://graph.facebook.com/v18.0/oembed_post'; + const ENDPOINT_VIDEO = 'https://graph.facebook.com/v18.0/oembed_video'; protected function detectEndpoint(): ?UriInterface { diff --git a/src/Adapters/Instagram/OEmbed.php b/src/Adapters/Instagram/OEmbed.php index 427a7ed4..bc2894fb 100644 --- a/src/Adapters/Instagram/OEmbed.php +++ b/src/Adapters/Instagram/OEmbed.php @@ -8,7 +8,7 @@ class OEmbed extends Base { - const ENDPOINT = 'https://graph.facebook.com/v8.0/instagram_oembed'; + const ENDPOINT = 'https://graph.facebook.com/v18.0/instagram_oembed'; protected function detectEndpoint(): ?UriInterface { diff --git a/src/resources/oembed.php b/src/resources/oembed.php index 5f39c9f9..b43d0221 100644 --- a/src/resources/oembed.php +++ b/src/resources/oembed.php @@ -286,7 +286,7 @@ '|^https?://eyrie\\.io/board/.*$|i', '|^https?://eyrie\\.io/sparkfun/.*$|i', ], - 'https://graph.facebook.com/v10.0/oembed_post' => [ + 'https://graph.facebook.com/v18.0/oembed_post' => [ '|^https?://www\\.facebook\\.com/.*/posts/.*$|i', '|^https?://www\\.facebook\\.com/.*/activity/.*$|i', '|^https?://www\\.facebook\\.com/.*/photos/.*$|i', @@ -297,12 +297,12 @@ '|^https?://www\\.facebook\\.com/questions/.*$|i', '|^https?://www\\.facebook\\.com/notes/.*/.*/.*$|i', ], - 'https://graph.facebook.com/v10.0/oembed_video' => [ + 'https://graph.facebook.com/v18.0/oembed_video' => [ '|^https?://www\\.facebook\\.com/.*/videos/.*$|i', '|^https?://www\\.facebook\\.com/video\\.php\\?id\\=.*$|i', '|^https?://www\\.facebook\\.com/video\\.php\\?v\\=.*$|i', ], - 'https://graph.facebook.com/v10.0/oembed_page' => [ + 'https://graph.facebook.com/v18.0/oembed_page' => [ '|^https?://www\\.facebook\\.com/.*$|i', ], 'https://app.getfader.com/api/oembed' => [ @@ -465,7 +465,7 @@ 'http://api.inphood.com/oembed' => [ '|^https?://.*\\.inphood\\.com/.*$|i', ], - 'https://graph.facebook.com/v10.0/instagram_oembed' => [ + 'https://graph.facebook.com/v18.0/instagram_oembed' => [ '|^https?://instagram\\.com/.*/p/.*,$|i', '|^https?://www\\.instagram\\.com/.*/p/.*,$|i', '|^https?://instagram\\.com/p/.*$|i',