@@ -6,6 +6,7 @@ import Twitch from "./twitch.provider";
66import Glitch from "./glitch.provider" ;
77import Loom from "./loom.provider" ;
88import Codepen from "./codepen.provider" ;
9+ import Facebook from "./facebook.provider" ;
910
1011const oEmbedProviders = [
1112 {
@@ -875,42 +876,6 @@ const oEmbedProviders = [
875876 } ,
876877 ] ,
877878 } ,
878- // {
879- // provider_name: "Facebook",
880- // provider_url: "https://www.facebook.com/",
881- // endpoints: [
882- // {
883- // schemes: [
884- // "https://www.facebook.com/*/posts/*",
885- // "https://www.facebook.com/*/activity/*",
886- // "https://www.facebook.com/photo.php?fbid=*",
887- // "https://www.facebook.com/photos/*",
888- // "https://www.facebook.com/permalink.php?story_fbid=*",
889- // "https://www.facebook.com/media/set?set=*",
890- // "https://www.facebook.com/questions/*",
891- // "https://www.facebook.com/notes/*/*/*",
892- // ],
893- // url: "https://graph.facebook.com/v8.0/oembed_post",
894- // discovery: false,
895- // },
896- // {
897- // schemes: [
898- // "https://www.facebook.com/*/videos/*",
899- // "https://www.facebook.com/video.php?id=*",
900- // "https://www.facebook.com/video.php?v=*",
901- // ],
902- // url: "https://graph.facebook.com/v8.0/oembed_video",
903- // discovery: false,
904- // },
905- // {
906- // schemes: [
907- // "https://www.facebook.com/*",
908- // ],
909- // url: "https://graph.facebook.com/v8.0/oembed_page",
910- // discovery: false,
911- // },
912- // ],
913- // },
914879 {
915880 provider_name : "Fader" ,
916881 provider_url : "https://app.getfader.com" ,
@@ -1383,70 +1348,6 @@ const oEmbedProviders = [
13831348 } ,
13841349 ] ,
13851350 } ,
1386- // {
1387- // provider_name: "Instagram",
1388- // provider_url: "https://instagram.com",
1389- // custom: true,
1390- // customClass: Instagram,
1391- // endpoints: [
1392- // {
1393- // schemes: [
1394- // "http://instagram.com/*/p/*,",
1395- // "http://www.instagram.com/*/p/*,",
1396- // "https://instagram.com/*/p/*,",
1397- // "https://www.instagram.com/*/p/*,",
1398- // "http://instagram.com/p/*",
1399- // "http://instagr.am/p/*",
1400- // "http://www.instagram.com/p/*",
1401- // "http://www.instagr.am/p/*",
1402- // "https://instagram.com/p/*",
1403- // "https://instagr.am/p/*",
1404- // "https://www.instagram.com/p/*",
1405- // "https://www.instagr.am/p/*",
1406- // "http://instagram.com/tv/*",
1407- // "http://instagr.am/tv/*",
1408- // "http://www.instagram.com/tv/*",
1409- // "http://www.instagr.am/tv/*",
1410- // "https://instagram.com/tv/*",
1411- // "https://instagr.am/tv/*",
1412- // "https://www.instagram.com/tv/*",
1413- // "https://www.instagr.am/tv/*",
1414- // ],
1415- // url: "https://api.instagram.com/oembed",
1416- // formats: [
1417- // "json",
1418- // ],
1419- // },
1420- // // {
1421- // // schemes: [
1422- // // "http://instagram.com/*/p/*,",
1423- // // "http://www.instagram.com/*/p/*,",
1424- // // "https://instagram.com/*/p/*,",
1425- // // "https://www.instagram.com/*/p/*,",
1426- // // "http://instagram.com/p/*",
1427- // // "http://instagr.am/p/*",
1428- // // "http://www.instagram.com/p/*",
1429- // // "http://www.instagr.am/p/*",
1430- // // "https://instagram.com/p/*",
1431- // // "https://instagr.am/p/*",
1432- // // "https://www.instagram.com/p/*",
1433- // // "https://www.instagr.am/p/*",
1434- // // "http://instagram.com/tv/*",
1435- // // "http://instagr.am/tv/*",
1436- // // "http://www.instagram.com/tv/*",
1437- // // "http://www.instagr.am/tv/*",
1438- // // "https://instagram.com/tv/*",
1439- // // "https://instagr.am/tv/*",
1440- // // "https://www.instagram.com/tv/*",
1441- // // "https://www.instagr.am/tv/*",
1442- // // ],
1443- // // url: "https://graph.facebook.com/v8.0/instagram_oembed",
1444- // // formats: [
1445- // // "json",
1446- // // ],
1447- // // },
1448- // ],
1449- // },
14501351 {
14511352 provider_name : "Issuu" ,
14521353 provider_url : "https://issuu.com/" ,
@@ -3903,6 +3804,85 @@ const customProviders = [
39033804 } ,
39043805 ] ,
39053806 } ,
3807+ {
3808+ provider_name : "Facebook" ,
3809+ provider_url : "https://www.facebook.com/" ,
3810+ endpoints : [
3811+ {
3812+ schemes : [
3813+ "https://www.facebook.com/*/posts/*" ,
3814+ "https://www.facebook.com/*/activity/*" ,
3815+ "https://www.facebook.com/photo.php?fbid=*" ,
3816+ "https://www.facebook.com/photos/*" ,
3817+ "https://www.facebook.com/permalink.php?story_fbid=*" ,
3818+ "https://www.facebook.com/media/set?set=*" ,
3819+ "https://www.facebook.com/questions/*" ,
3820+ "https://www.facebook.com/notes/*/*/*" ,
3821+ ] ,
3822+ url : "https://graph.facebook.com/v10.0/oembed_post" ,
3823+ discovery : false ,
3824+ } ,
3825+ {
3826+ schemes : [
3827+ "https://www.facebook.com/*/videos/*" ,
3828+ "https://www.facebook.com/*/videos/{video-id}" ,
3829+ "https://www.facebook.com/video.php?id=*" ,
3830+ "https://www.facebook.com/video.php?v=*" ,
3831+ "https://fb.watch/*" ,
3832+ ] ,
3833+ url : "https://graph.facebook.com/v10.0/oembed_video" ,
3834+ discovery : false ,
3835+ } ,
3836+ {
3837+ schemes : [
3838+ "https://www.facebook.com/*" ,
3839+ ] ,
3840+ url : "https://graph.facebook.com/v10.0/oembed_page" ,
3841+ discovery : false ,
3842+ } ,
3843+ ] ,
3844+ custom : true ,
3845+ customClass : Facebook ,
3846+ } ,
3847+ {
3848+ provider_name : "Instagram" ,
3849+ provider_url : "https://instagram.com" ,
3850+ endpoints : [
3851+ {
3852+ schemes : [
3853+ "http://instagram.com/*/p/*," ,
3854+ "http://www.instagram.com/*/p/*," ,
3855+ "https://instagram.com/*/p/*," ,
3856+ "https://www.instagram.com/*/p/*," ,
3857+ "http://instagram.com/p/*" ,
3858+ "http://instagr.am/p/*" ,
3859+ "http://www.instagram.com/p/*" ,
3860+ "http://www.instagr.am/p/*" ,
3861+ "https://instagram.com/p/*" ,
3862+ "https://instagr.am/p/*" ,
3863+ "https://www.instagram.com/p/*" ,
3864+ "https://www.instagr.am/p/*" ,
3865+ "http://instagram.com/tv/*" ,
3866+ "http://instagr.am/tv/*" ,
3867+ "http://www.instagram.com/tv/*" ,
3868+ "http://www.instagr.am/tv/*" ,
3869+ "https://instagram.com/tv/*" ,
3870+ "https://instagr.am/tv/*" ,
3871+ "https://www.instagram.com/tv/*" ,
3872+ "https://www.instagr.am/tv/*" ,
3873+ "https://www.instagram.com/reel/*" ,
3874+ "https://instagram.com/reel/*" ,
3875+ "https://www.instagr.am/reel/*" ,
3876+ ] ,
3877+ url : "https://graph.facebook.com/v9.0/instagram_oembed" ,
3878+ formats : [
3879+ "json" ,
3880+ ] ,
3881+ } ,
3882+ ] ,
3883+ custom : true ,
3884+ customClass : Instagram ,
3885+ } ,
39063886] ;
39073887
39083888export default [ ...oEmbedProviders , ...additionalOEmbedProviders , ...customProviders ] ;
0 commit comments