Skip to content

Commit

Permalink
Updates facebook Graph API to v18
Browse files Browse the repository at this point in the history
  • Loading branch information
anairamzap-mobomo committed May 23, 2024
1 parent 8632aaa commit 0d75d31
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/Adapters/Facebook/OEmbed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Adapters/Instagram/OEmbed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
8 changes: 4 additions & 4 deletions src/resources/oembed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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' => [
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 0d75d31

Please sign in to comment.