diff --git a/wagtail/wagtailembeds/oembed_providers.py b/wagtail/wagtailembeds/oembed_providers.py index aa5e4ab3dc..6c122eb62f 100644 --- a/wagtail/wagtailembeds/oembed_providers.py +++ b/wagtail/wagtailembeds/oembed_providers.py @@ -83,20 +83,20 @@ OEMBED_ENDPOINTS = { "^http[s]?://(?:www\\.)?instagram\\.com/p/.+$" ], "https://www.facebook.com/plugins/video/oembed.{format}": [ - "^https://(?:www\\.)?facebook\\.com/.+/videos/.+$", + "^https://(?:www\\.)?facebook\\.com/.+?/videos/.+$", "^https://(?:www\\.)?facebook\\.com/video\\.php\\?(?:v|id)=.+$", ], "https://www.facebook.com/plugins/post/oembed.{format}": [ - "^https://(?:www\\.)?facebook\\.com/.+/(?:posts|activity)/.+$", + "^https://(?:www\\.)?facebook\\.com/.+?/(?:posts|activity)/.+$", "^https://(?:www\\.)?facebook\\.com/photo\\.php\\?fbid=.+$", "^https://(?:www\\.)?facebook\\.com/(?:photos|questions)/.+$", "^https://(?:www\\.)?facebook\\.com/permalink\\.php\\?story_fbid=.+$", "^https://(?:www\\.)?facebook\\.com/media/set/?\\?set=.+$", - "^https://(?:www\\.)?facebook\\.com/notes/.+/.+/.+$", + "^https://(?:www\\.)?facebook\\.com/notes/.+?/.+?/.+$", # At the moment, not documented on https://developers.facebook.com/docs/plugins/oembed-endpoints # Works for posts with a single photo - "^https://(?:www\\.)?facebook\\.com/.+/photos/.+$", + "^https://(?:www\\.)?facebook\\.com/.+?/photos/.+$", ], "https://www.slideshare.net/api/oembed/2": [ "^http://www\\.slideshare\\.net/.+$"