0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Add support of Facebook oEmbed

Fixes #3532
This commit is contained in:
Mikalai Radchuk 2017-04-13 23:33:26 +03:00 committed by Matt Westcott
parent 6bc6480cd2
commit 94ca64fd95

View File

@ -82,6 +82,22 @@ OEMBED_ENDPOINTS = {
"^http://instagr\\.am/p/.+$",
"^http[s]?://(?:www\\.)?instagram\\.com/p/.+$"
],
"https://www.facebook.com/plugins/video/oembed.{format}": [
"^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/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/.+/.+/.+$",
# 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.slideshare.net/api/oembed/2": [
"^http://www\\.slideshare\\.net/.+$"
],