|
2 | 2 | { |
3 | 3 | "name": "Facebook Post no query string", |
4 | 4 | "templates": [ |
5 | | - "(?:www|m|business)\\.(facebook\\.com/[a-zA-Z0-9\\.\\-]+/(?:posts|activity)/\\d{10,})", |
6 | | - "(?:www|m|business)\\.(facebook\\.com/[a-zA-Z0-9\\.\\-]+/(?:posts|activity)/pfbid([a-zA-Z0-9\\.\\-]+))", |
| 5 | + "(?:www|m|business)\\.(facebook\\.com/[^/]+/(?:posts|activity)/\\d{10,})", |
| 6 | + "(?:www|m|business)\\.(facebook\\.com/posts/[^/]+/\\d{10,})", |
| 7 | + "(?:www|m|business)\\.(facebook\\.com/[^/]+/(?:posts|activity)/pfbid([a-zA-Z0-9\\.\\-]+))", |
7 | 8 | "(?:www|m|business)\\.(facebook\\.com/notes/[^/]+/[^/]+/\\d{10,})", |
8 | 9 | "(?:www|m|business)\\.(facebook\\.com/\\d+_\\d+)" |
9 | 10 | ], |
10 | 11 | "url": "https://www.{1}", |
11 | | - "endpoint": "https://graph.facebook.com/v18.0/oembed_post" |
| 12 | + "endpoint": "https://graph.facebook.com/v24.0/oembed_post" |
12 | 13 | }, |
13 | 14 | { |
14 | 15 | "name": "Facebook Video no query string", |
15 | 16 | "templates": [ |
16 | | - "(?:www|business)\\.(facebook\\.com/[a-zA-Z0-9.]+/videos/\\d+)", |
| 17 | + "(?:www|business)\\.(facebook\\.com/[^/]+/videos/\\d+)", |
17 | 18 | "(?:www|m|business)\\.(facebook\\.com/watch/?\\?v=\\d+)" |
18 | 19 | ], |
19 | 20 | "url": "https://www.{1}", |
20 | | - "endpoint": "https://graph.facebook.com/v18.0/oembed_video" |
| 21 | + "endpoint": "https://graph.facebook.com/v24.0/oembed_video" |
21 | 22 | }, |
22 | 23 | { |
23 | 24 | "name": "Facebook Video", |
|
31 | 32 | "(?:www|m|business)\\.facebook\\.com/watch/?\\?(?:.+&)?v=\\d+", |
32 | 33 | "(?:www|m|business)\\.facebook\\.com/reel/\\d+" |
33 | 34 | ], |
34 | | - "endpoint": "https://graph.facebook.com/v18.0/oembed_video" |
| 35 | + "endpoint": "https://graph.facebook.com/v24.0/oembed_video" |
35 | 36 | }, |
36 | 37 | { |
37 | 38 | "name": "Facebook Post", |
38 | 39 | "templates": [ |
39 | 40 | "(?:www|m|business)\\.facebook\\.com/(permalink|story)\\.php\\?[^/]+(\\d{10,})", |
40 | 41 | "(?:www|m|business)\\.facebook\\.com/photo\\.php\\?[^/]+(\\d{10,})", |
41 | 42 | "(?:www|m|business)\\.facebook\\.com/photo/?\\?", |
42 | | - "(?:www|m|business)\\.facebook\\.com/([a-zA-Z0-9\\.\\-]+)/(?:photos/)?[^\\/]+/(\\d{10,})", |
| 43 | + "(?:www|m|business)\\.facebook\\.com/[^/]+/(?:photos/)?[^\\/]+/(\\d{10,})", |
43 | 44 | "(?:www|m|business)\\.facebook\\.com/media/set/\\?set=[^/]+(\\d{10,})" |
44 | 45 | ], |
45 | | - "endpoint": "https://graph.facebook.com/v18.0/oembed_post" |
| 46 | + "endpoint": "https://graph.facebook.com/v24.0/oembed_post" |
46 | 47 | }, |
47 | 48 | { |
48 | 49 | "name": "Facebook Page", |
49 | 50 | "templates": [ |
50 | 51 | "(?:www|m)\\.facebook\\.com/(?:pg|pages)/", |
51 | 52 | "(?:www|m)\\.facebook\\.com/[^/]+/?(?:about|photos|videos|events|timeline|photos_stream)?/?(?:\\?[^/\\?]+)?$" |
52 | 53 | ], |
53 | | - "endpoint": "https://graph.facebook.com/v18.0/oembed_page" |
| 54 | + "endpoint": "https://graph.facebook.com/v24.0/oembed_page" |
54 | 55 | }, |
55 | 56 | { |
56 | 57 | "name": "Instagram", |
57 | 58 | "templates": [ |
58 | 59 | "(?:www\\.)?(instagram\\.com/(?:p|tv|reel)/([a-zA-Z0-9_-]+))", |
59 | 60 | "(instagr\\.am/p/([a-zA-Z0-9_-]+))" |
60 | 61 | ], |
61 | | - "endpoint": "https://graph.facebook.com/v18.0/instagram_oembed?format={format}&url=https://www.{1}/" |
| 62 | + "endpoint": "https://graph.facebook.com/v24.0/instagram_oembed?format={format}&url=https://www.{1}/" |
62 | 63 | }, |
63 | 64 | { |
64 | 65 | "name": "Instagram user page", |
65 | 66 | "templates": [ |
66 | 67 | "(?:www\\.)?(instagram\\.com/)[a-zA-Z0-9_\\-\\.]+/((?:p|tv|reel)/[a-zA-Z0-9_-]+)", |
67 | 68 | "(instagr\\.am/)[a-zA-Z0-9_\\-\\.]+/(p/[a-zA-Z0-9_-]+)" |
68 | 69 | ], |
69 | | - "endpoint": "https://graph.facebook.com/v18.0/instagram_oembed?format={format}&url=https://www.{1}{2}" |
| 70 | + "endpoint": "https://graph.facebook.com/v24.0/instagram_oembed?format={format}&url=https://www.{1}{2}" |
70 | 71 | }, |
71 | 72 | { |
72 | 73 | "name": "Instagram profile", |
73 | 74 | "templates": [ |
74 | 75 | "(?:www\\.)?(instagram\\.com/)([a-zA-Z0-9_\\-\\.]+)/?(?:\\?.+)?$" |
75 | 76 | ], |
76 | 77 | "url": "https://www.{1}{2}/", |
77 | | - "endpoint": "https://graph.facebook.com/v18.0/instagram_oembed?format={format}&&url={url}" |
| 78 | + "endpoint": "https://graph.facebook.com/v24.0/instagram_oembed?format={format}&&url={url}" |
78 | 79 | }, |
79 | 80 | { |
80 | 81 | "name": "Dailymotion", |
|
0 commit comments