shobhitsharma / embedo Goto Github PK
View Code? Open in Web Editor NEWEmbeds third party content to DOM with perks ๐งโโ๏ธ (7kb gzip / standalone)
Home Page: https://shobhitsharma.github.io/embedo
License: MIT License
Embeds third party content to DOM with perks ๐งโโ๏ธ (7kb gzip / standalone)
Home Page: https://shobhitsharma.github.io/embedo
License: MIT License
sir, i'm having problem in using embedo for my project... because i'm a bit confused about how to use it... so it would be really helpful for me if you tell me how and where to define the facebook or any other link to get the results shown on the site... i will be waiting for you to respond... thanks
Hello
there a way to "auto height" instagram embed url ?
Thank !
It appears there's no support for oembed discovery?
For example, flickr URLs do not appear to be supported - although flickr provides <link rel="alternative">
tags on their pages with oembed (in JSON and XML formats) discoverable.
Is this "by design"?
How would I go about adding a new provider?
In particular I was interested in adding support for SproutVideo. Here is an example of how embedly does it:
It seems that twitter embed doesn't work. It happens on https://shobhitsharma.github.io/embedo/ to.
hi I find fb update their API, so could you upgrade base on the new version?
FYI https://developers.facebook.com/docs/instagram/oembed-legacy/
thanks a lot
Is it possible to enable the fullscreen button in youtube embedded video's? Since it does not seem to be possible according to the code, if I read it correctly.
Embedo library seems pretty cool, although the preview on the website doesn't seem to work very well... At least not on Chrome browser that I tried on. When I enter the URL of say http://twitter.com/jonmalave the preview renders the width OK, but doesn't render the height correctly, then within seconds disappears. So it's not allowing me to preview what the embed would look like really...
Will you add VK posts?
This package is fantastic. It's what I was looking for.
Please, correct the usage link "Codepen - Using with React" (https://codepen.io/shobhitsharma/pen/prOGzd). It shows a blue screen.
The other link, https://codepen.io/shobhitsharma/pen/yojJZp, is ok.
Regards.
Hi,
so far so good. I like the codebase quite a lot and like how easy it actually is, compared to go to each social network and generate the thing and copy their cough shitty code.
Is it possible or planned, that it will also generate whole feeds? For example, when loading in only a pages URL or users URL.
If the pinistrify
function, handlePinterestEmbed
makes this check:
Line 1593 in 46c7821
pinterest_embed_timer
is an interval ID, so you'll always get an error, even if the embed is successful, if the ID pool is over 100 (pretty common, especially in SPA).
I'm not sure what this is supposed to be checking, but even if you use a counter here instead, 100 * 250ms (25 seconds) seems too long. Something like 20, or 5s total, would be more reasonable.
Also, I'm reasonably certain that the setInterval call here:
Line 1578 in 46c7821
should be inside the setTimeout after the if block containing the PinUtils.build
call:
Lines 1580 to 1584 in 46c7821
(after line 1583)
My changes here https://github.com/nborko/embedo/blob/865fcbe1da62467a333d31838541c39861294c48/embedo.js#L1578-L1598 work for me, please let me know if you'd like a PR.
thanks,
Nick
Can you please add support for Reddit?
It uses the following url:
https://embed.redditmedia.com/widgets/embed?url=
I couldn't find any official documentation for it.
Stack
TypeError: undefined is not a constructor (evaluating 'n.find(function(i){return t.defaults.SOURCES[i]&&e.match(t.defaults.SOURCES[i].REGEX)?i:null})')
Cause
Running script in a headless browser plugin, either for scraping or mock test, caused this exception. Fixing buildscript while adding polyfills might solve it.
It just works for me
<html>
<body>
<div data-embedo-url="https://www.youtube.com/watch?v=cwQgjq0mCdE"></div>
</body>
<script type="text/javascript" src="https://unpkg.com/[email protected]/embedo.min.js"></script>
<script>
new Embedo({
youtube: true
});
</script>
</html>
I started to migrate my embed rendering code to the server side recently and realized (i think) that embedo can only work on the client side.
Is that true? If so, is there a good recommendation of a tool (nodejs preferrable) as simple and easy to use as embedo that works on the server side?
thanks,
Cliff
As title,
when i render it out, there are a default css there, it will run out of div.
<div id="embedo_arc5ry" data-embedo-id="embedo_arc5ry" data-embedo-source="facebook" style="display: flex; text-align: center; justify-content: center; align-items: center; margin: 0px auto; width: 750px; height: 500px;"><div class="fb-page fb_iframe_widget" data-href="https://www.facebook.com/facebook/" data-width="750" data-height="500" fb-xfbml-state="rendered" fb-iframe-plugin-query="app_id=1757323867855573&container_width=308&height=500&href=https%3A%2F%2Fwww.facebook.com%2Ffacebook%2F&locale=en_US&sdk=joey&width=750"><span style="vertical-align: bottom; width: 308px; height: 214px;"><iframe name="f3a93801707721c" width="750px" height="500px" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" allow="encrypted-media" title="fb:page Facebook Social Plugin" src="https://www.facebook.com/plugins/page.php?app_id=1757323867855573&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D44%23cb%3Df2dee353410122%26domain%3Dlocalhost%26origin%3Dhttp%253A%252F%252Flocalhost%253A3000%252Ff344933bfc48d6c%26relation%3Dparent.parent&container_width=308&height=500&href=https%3A%2F%2Fwww.facebook.com%2Ffacebook%2F&locale=en_US&sdk=joey&width=750" style="border: none; visibility: visible; width: 308px; height: 214px;" class=""></iframe></span></div></div>
As html it render can see that element id : embedo_arc5ry
has css display: flex; text-align: center; justify-content: center; align-items: center; margin: 0px auto; width: 750px; height: 500px;
how can i change it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.