-
-
Notifications
You must be signed in to change notification settings - Fork 319
Description
Hi,
I just found an issue in the facebook oEmbed docs (new api from 24th Oct).
In the URL Formats section they do not list "Photos in pages" but indeed this url scheme work for the "oembed_post" endpoint.
The URL format for that case should be https://www.facebook.com/{page-name}/photos/{id}
E.g. https://www.facebook.com/amrum/photos/a.10161026612345162/10161026614895162/
Using the integrated "embed post" this type of post is embeddable.
I'll create a pull request for v4. v3.x is not necessary because the conditions are way different.
Section in v4:
https://github.com/oscarotero/Embed/blob/master/src/Adapters/Facebook/OEmbed.php#L57-L67
(always use page as fallback, so it does not work)
Section in v3:
https://github.com/oscarotero/Embed/blob/v3.x/src/Providers/OEmbed/Facebook.php#L55
(always use post as fallback, so it works)