anyway to embed FB video tried2 popular ways with no luck…new here so probably this question was asked before
couldnt find it anywhere
Support Forum
Hey Vinny,
Actually I’m not sure that question has been asked before.. I guess you’re talking about Facebook, and it looks like they’re trying their hardest to make it difficult!
After spending a while searching for someone on my friends list who has a video uploaded, it looks like the only embed option is either HTML for embedding on your website, or iframes – and you really shouldn’t let your users post iframes.
Short answer is I’m not sure, probably best to wait and see if Andy or Steve can take a look.
sorry – I am not a FaceBook user so… is there a simp,e url to these videos available and have you tried simply pasting that url into a post? If faceBook supports oEmbed and if WordPress has included it on it’s list then that should just work.
Failing that is anybody able to give is a public link to one so we can look at the options?
Seems like most are using <embed> tags or this code with changing xxx to FB video ID:
object width="400" height="224" <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="movie" value="http://www.facebook.com/v/xxx" /> <embed src="http://www.facebook.com/v/xxx" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="224"> </embed> /object
I am not that advanced and couldn’t get 2nd to work either thnx
Ike said
Hey Vinny,Actually I’m not sure that question has been asked before.. I guess you’re talking about Facebook, and it looks like they’re trying their hardest to make it difficult!
After spending a while searching for someone on my friends list who has a video uploaded, it looks like the only embed option is either HTML for embedding on your website, or iframes – and you really shouldn’t let your users post iframes.
Short answer is I’m not sure, probably best to wait and see if Andy or Steve can take a look.
Why is allowing ifames a bad thing? I have read that is a security issue, but I have also read that it is not a security issue? I see that a lot of the video embeds are in iframes? Also, how can one embed a tweet?
if you allow embedding an iframe allows many things to happen… first, any user can display content from any site which could contain malware… clickjacking can occur… in addition, you could open yourself up to XSS attacks…
basically, you are letting anyone who can post, have quite a bit of free reign…
but all that said, as mentioned in multiple posts here, if you really want to allow iframes, there is a permission you can give users that allow them to do so… but you really need to trust your users…
FYI I was looking for a secure way if it is even possible, even easy like youtube just add link
remember, youtube, twitter, etc embed stuff is handled by WP…. they currently dont support facebook in the same way…
Jetpack allows facebook video embedding the same way youtube videos do, you just post the straight facebook vid link and voila! Problem is, with SP if I paste a facebook vid link I just get a link and not the video like I do with youtube, can you suggest a way to get around this?
Hey Tal,
As discussed above, it’s not looking possible currently. If you did want to use iframes have you tried it? Would be interested to know if it works OK as I haven’t tested.
Will try and take another look to see if anything has changed since March but it’s doubtful.
test
<div id=”fb-root”></div><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = “//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3″; fjs.parentNode.insertBefore(js, fjs);}(document, ‘script’, ‘facebook-jssdk’));</script><div class=”fb-video” data-allowfullscreen=”1″ data-href=”/TheHomesteadingBoards/videos/vb.306658222735334/921948017873015/?type=3″><div class=”fb-xfbml-parse-ignore”><blockquote cite=”https://www.facebook.com/TheHomesteadingBoards/videos/921948017873015/”><a href=”https://www.facebook.com/TheHomesteadingBoards/videos/921948017873015/”>Mora Light My Fire Review</a><p>Here is a quick review of the mora light my fire blade, we will giving away one of these and you can enter the contest here. Good luck! http://thehomesteadingboards.com/mora-light-my-fire-giveaway-contest/</p>Posted by <a href=”https://www.facebook.com/TheHomesteadingBoards”>The Homesteading Boards</a> on Saturday, October 3, 2015</blockquote></div></div>
test
Mora Light My Fire Review
Here is a quick review of the mora light my fire blade, we will giving away one of these and you can enter the contest here. Good luck! http://thehomesteadingboards.com/mora-light-my-fire-giveaway-contest/Posted by The Homesteading Boards on Saturday, October 3, 2015
yeah, the code above is what facebook gives for embedding, I’ve tried every possible method to get it to embed and no luck 🙁
Thanks anyway.. This is what I found last time I looked in to it, lot of complaints around the web about how restrictive it is, but then I guess Facebook isn’t intended to be used as a video hosting service and it looks like they try very hard to preserve that!