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
Related
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.
I'm trying to post on a users' wall through the Facebook Opengraph API and the PHP SDK.
All is working fine - except the video I'm attempting to include in the post (hosted on Facebook videos) is failing to show up on the wall/timeline of the user being posted to.
I'm setting the URL to the video as the 'source' value in the $attachment data sent to /me/feed. Also setting 'type' to video.
On the wall I get a placeholder thumbnail and the rest of the post as specified.
Any ideas?
Thanks,
Steve
You should be able to link to the video as a link. For other types of shared content, you should check out: https://developers.facebook.com/docs/guides/attachments/. Let me know if this isn't what you were trying to do.
The video links shared via my website on Facebook appear as only images in the shared link; Facebook doesn't seem to recognize the content as video.
I've debugged the URL via Facebook debugger, and every thing appears fine:
<http://developers.facebook.com/tools/debug/og/object?q=www.vlikeviral.com%2Fvideos%2Fplay%3Fid%3D10>
The thumbnail that appears under the link does not have a play button on it. As you can see in the debug details, the appropriate og tags are already present on the page.
For video playing Facebook is not considering og:video tag, instead of that it is looking for og:video:secure_url tag
refer-link: https://developers.facebook.com/blog/post/602/
You seem to be missing an og:video tag pointing to the video source.
See also Shared Facebook video is not displayed inline in wall posts for HTTPS users - you also need to include the HTTPS source if you want users browsing Facebook over HTTPS to see the inline video.
It is very easy. You can add play button on an image like Facebook play button by using adobe Photoshop. Watch this video you will understand how to add it on the image.
http://mefmor.blogspot.com/2014/08/how-to-add-facebook-play-button-in-your.html
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.
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.