Skip to content

Commit 0d75d31

Browse files
Updates facebook Graph API to v18
1 parent 8632aaa commit 0d75d31

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Diff for: src/Adapters/Facebook/OEmbed.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
class OEmbed extends Base
1010
{
11-
const ENDPOINT_PAGE = 'https://graph.facebook.com/v11.0/oembed_page';
12-
const ENDPOINT_POST = 'https://graph.facebook.com/v11.0/oembed_post';
13-
const ENDPOINT_VIDEO = 'https://graph.facebook.com/v11.0/oembed_video';
11+
const ENDPOINT_PAGE = 'https://graph.facebook.com/v18.0/oembed_page';
12+
const ENDPOINT_POST = 'https://graph.facebook.com/v18.0/oembed_post';
13+
const ENDPOINT_VIDEO = 'https://graph.facebook.com/v18.0/oembed_video';
1414

1515
protected function detectEndpoint(): ?UriInterface
1616
{

Diff for: src/Adapters/Instagram/OEmbed.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class OEmbed extends Base
1010
{
11-
const ENDPOINT = 'https://graph.facebook.com/v8.0/instagram_oembed';
11+
const ENDPOINT = 'https://graph.facebook.com/v18.0/instagram_oembed';
1212

1313
protected function detectEndpoint(): ?UriInterface
1414
{

Diff for: src/resources/oembed.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
'|^https?://eyrie\\.io/board/.*$|i',
287287
'|^https?://eyrie\\.io/sparkfun/.*$|i',
288288
],
289-
'https://graph.facebook.com/v10.0/oembed_post' => [
289+
'https://graph.facebook.com/v18.0/oembed_post' => [
290290
'|^https?://www\\.facebook\\.com/.*/posts/.*$|i',
291291
'|^https?://www\\.facebook\\.com/.*/activity/.*$|i',
292292
'|^https?://www\\.facebook\\.com/.*/photos/.*$|i',
@@ -297,12 +297,12 @@
297297
'|^https?://www\\.facebook\\.com/questions/.*$|i',
298298
'|^https?://www\\.facebook\\.com/notes/.*/.*/.*$|i',
299299
],
300-
'https://graph.facebook.com/v10.0/oembed_video' => [
300+
'https://graph.facebook.com/v18.0/oembed_video' => [
301301
'|^https?://www\\.facebook\\.com/.*/videos/.*$|i',
302302
'|^https?://www\\.facebook\\.com/video\\.php\\?id\\=.*$|i',
303303
'|^https?://www\\.facebook\\.com/video\\.php\\?v\\=.*$|i',
304304
],
305-
'https://graph.facebook.com/v10.0/oembed_page' => [
305+
'https://graph.facebook.com/v18.0/oembed_page' => [
306306
'|^https?://www\\.facebook\\.com/.*$|i',
307307
],
308308
'https://app.getfader.com/api/oembed' => [
@@ -465,7 +465,7 @@
465465
'http://api.inphood.com/oembed' => [
466466
'|^https?://.*\\.inphood\\.com/.*$|i',
467467
],
468-
'https://graph.facebook.com/v10.0/instagram_oembed' => [
468+
'https://graph.facebook.com/v18.0/instagram_oembed' => [
469469
'|^https?://instagram\\.com/.*/p/.*,$|i',
470470
'|^https?://www\\.instagram\\.com/.*/p/.*,$|i',
471471
'|^https?://instagram\\.com/p/.*$|i',

0 commit comments

Comments
 (0)