Skip to content

Commit 58d2295

Browse files
committed
bug
1 parent c366329 commit 58d2295

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Adapters/Facebook/OEmbed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ protected function detectEndpoint(): ?UriInterface
2525
$queryParameters['access_token'] = $token;
2626

2727
return $this->extractor->getCrawler()
28-
->createUri($this->getEndpoint($uri->getPath()))
28+
->createUri($this->getEndpointByPath($uri->getPath()))
2929
->withQuery($queryParameters);
3030
}
3131

32-
private function getEndpoint(string $path): string
32+
private function getEndpointByPath(string $path): string
3333
{
3434
/* Videos
3535
https://www.facebook.com/{page-name}/videos/{video-id}/

src/ExtractorFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class ExtractorFactory
2626
'archive.org' => Adapters\Archive\Extractor::class,
2727
'sassmeister.com' => Adapters\Sassmeister\Extractor::class,
2828
'facebook.com' => Adapters\Facebook\Extractor::class,
29+
'instagram.com' => Adapters\Instagram\Extractor::class,
2930
'imageshack.com' => Adapters\ImageShack\Extractor::class,
3031
'imagizer.imageshack.com' => Adapters\ImageShack\Extractor::class,
3132
'youtube.com' => Adapters\Youtube\Extractor::class,

0 commit comments

Comments
 (0)