How does YouTube get its player embedded as iframe in the Facebook wall? - facebook

I'm wondering how to embed some HTML code in a facebook post on the wall..
I've already searched for that and came to the conclusion that ATM it's not possible (Am i right???)
But inspecting the code of the facebook news feed page i have noticed that a YouTube video was coded as an iframe!
What happened there?
Thank you

You are correct, HTML cannot be posted to the Facebook wall. The reason Youtube videos show up is actually a by product of the Facebook coding. When a user posts a URL to a Youtube video the Facebook wall automatically converts it to a video in an iFrame.

Related

Facebook oEmbed Video Loading is Choppy

I am using oembed to add a FB video to a webpage. The users will be adding more in the future. When the page loads, the video embedding is really choppy. This doesn’t happen with YouTube or Vimeo videos. I wanted to know why FB was loading differently than the others and noticed that FB initially downloads a blockquote and some javascript. Then after the page loads the js connects to FB and replaces the blockquote with an iframe for the video. The user can see the blockquote being replaced. It’s not smooth. YouTube and Vimeo just download the iframe directly.
I’ve already explained to my user that I can’t control how FB responds to my request. But I wanted to ask if anyone else has seen this and if a workaround exists.

Publishing links using Facebook graph API display feed as attachment on Facebook fan page

I am try to publish link on Facebook fan page using graph API but it displayed as attachment not as normal feed which display thumbnail.
Where as when I try to publish same link on users wall it display properly showing image thumbnail.
Can any one tell me why Facebook graph API work differently.
Feed publish on FB fan page :
Feed on user wall :
Thanks to all, I am finally able to solve this issue, the issue was I am using {page_id}/feed method to publish link for video and image, which displayed as attachment on Facebook fan page.
Solution : {page_id}/links with parameters [link, message, picture]
Pls provide params you include in request to facebook. Maybe providing params as shown in answer to following question helps, i.e. picture?
Posting an embedded video link using the Facebook Graph API

Sharing Youtube Video to Facebook using Share Button no thumbnail

i am facing a problem while sharing a youtube video from my website using facebook share button,
the website contains Article, pictures and Videos imported from Youtube, all meta tags are well formatted and provided. but only with youtube when i try to share a video thumbnail is not shown !!! in the other side the description and the title all is shown and right.
i tried to check what facebook is recognizing from my website through (developers.facebook.com/tools/debug) and the thumbnail is there !!!!
i also tried to take the video url directly from youtube and paste it to facebook and the thumbnail is shown, only when i click the share button from my website to share a youtube video the thumbnail disappear.
please help and thanks in advance.

Facebook Feed Dialog with a video already uploaded in facebook

I'm trying to do a Feed Dialog in Facebook with a video already uploaded in Facebook.
First, I tried putting in the 'source' param the URL of the video, extracting it with the json return by Graph Api. However, Facebook doesn´t support their own media URLs in this way.
My intention is to show the same effect when you click in "Share" in any video in you facebook profile, but I don't know how i can refer the video.
I don't find anything in the Facebook's developers documentation.
Try linking to the video page itself, like how you link to YouTube if you want to share a video. Facebook renders the YouTube player in the wall when you do this, so in theory it should do the same when you share a Facebook Video URL.
I've just found the option: "Embed this Video" . In the code that Facebook gives in this option, I can find the URL for the video (www.facebook.com/v/video_id), and this works fine in the feed dialog.
The problem was the URL given in the JSON.
Thanks

How can I play a flash video on my profile page just like you tube does?

I need an application that plays a video as the user clicks on my fan page image ..Youtube is a sample app.
I need exactly the same thing for my app.
As I click share on my fan page, it shares the fan page , I am using the http://www.facebook.com/sharer.php with params title, summary,p[url],images[0],url..
As I click on the image on the user's profile page, It needs to start loading a video.
How can I do that?
I'd suggest to use facebook's opengraph protocol, you can use og:video tags with swf from opengraph dynamically on your page:
https://developers.facebook.com/docs/opengraph/
anytime the page with og:video tags is liked - the swf is automatically embedded on the user's wall, users have to click it to start playing exactly like youtube videos.
If I am not mistaken, Facebook does not allow you to auto play in-line videos.