Streaming video from Facebook - facebook

I want to stream a video from Facebook to my site and use my own custom video player (flowplayer for instance) to play it. Basicly I want to access the registered user's videos and play them in my application. is it possible? If it is, how can I achieve that?

Fairly easy, but there are a few steps to go thru.
Grab a list of their videos from the Graph API me/videos using their user access_token
Present user with list of their videos, let user select video to watch.
For the id of the video selected, call the Graph API and FQL the src or src_hq which gives you the link to the mp4 of the video
Point your custom player to the mp4 link.

Related

How to add thumbnail to facebook scheduled LIVE VIDEO using API

I want to add thumbnail to facebook LIVE VIDEO using graph api. I saw some websites able to do that , they can add thumbnail to live video. there is no docs available to do that.
I tried to upload thumbnail to the live video attachment but not worked.
some website are able to add the thumbnail to the scheduled live video , see the above screenshot with thumbnail
As far as I know, there's no standard way of doing that. However, if you tried getting the data of the live video after the live stream has started, it will include an iframe that has the video ID in its source. So the process would be something like this:
Create the live video
Start the live stream
Get the live video data
Parse the iframe content and extract the value from the src attribute
Get the href query param from the extracted value
The last part of the href is the actual video ID that will show in feeds
Use that video ID to add the thumbnail
I would advise adding some latency before step #3 so that you can be sure that the video has been created in feeds.
USE THIS
https://developers.facebook.com/docs/graph-api/reference/live-video/#Creating
Include event_params: {"cover" : "<thumbnail url>"} in the request parameters
Cover photo won't show up in timeline. (You need to click on more and then click on events)

I would like to upload a youtube video on FB as native video and I want it to autorun

I would like to post a youtube video on my Facebook page, I used http://yt2fb.com/ to look like a native one and I would like it to autorun when I scroll down the page
I've downloaded http://www.thunderpenny.com/ and add autoplay=1 but it doesn't publish the video.
Do you have any suggestions?
Best
Sly

Post an mp3 to a users feed via the Feed Dialog

According to https://developers.facebook.com/docs/reference/dialogs/feed/ one can post mp3s to a users feed by constructing a URL like:
https://www.facebook.com/dialog/feed?+app_id=<APP-ID>+&display=popup&caption=<CAPTION>&redirect_uri=<REDIRECT>&picture=<PICTURE>&source=<MP3-FILE>&description=<DESCRIPTION>
This produces a share dialog, but when the source parameter is added, the file is not embedded on the page (nor is any link to the file given).
I had expected to be able to embed the mp3 like the documentation says. I seem to remember that facebook had it's own player to play embedded mp3 files from the feed - this is not showing up.
Has this functionality been disabled?
I think the API still allows you to attach audio data but Facebook's audio player was removed in 2011 -
To play music inline now, you need to specify a flash player which loads the desired audio as an attached 'video' ( via the same 'source' parameter of the feed dialog )
You could also use a third party like Soundcloud who have a flash player for the content uploaded there

Video embed on timeline with custom open graph object

So the story is this, I added a custom object to my app called Music Video and an action called Watch. I have all the needed meta tags in my pages to show the flash video, the linter reads them perfectly, it says that the type of share for my object is Video also.
If I post it using the like social plugin the flash video shows just fine but with my custom Watch action just shows the thumbnail and no play button, no nothing.
Do you know any example of apps using the new open graph api to embed video?
Facebook currently does not embed Flash video alongside stories generated from the build-in Watch action or on custom actions. Facebook will however embed the video if the URL is organically shared (copy and pasted into the Composer in Facebook) or liked via the Like button.
For now, this means a click on the watch news feed or ticker story will drive the user to your site, where you can authenticate them, play the video, and publish another watch action on their behalf.
I don't know when the changes took effect, but you can check it right here:

Youtube and Facebook Video opening in media player when clicking button

I am noob with iPhone programming. I want to ask question regarding the Video and Facebook link.
I create list of page and when user clicks page, the view will show description of video and a button to play the video.
1.Is it possible to play facebook and youtube video in media player when user clicks Button?
because each page has different video, and i only get embedded link of a youtube video (not video file format and the video identifier).
2.How to send parameter to IBAction? Because when user click button it depends on the video link on selected page.
What my apps look like will be similar with SBS News Australia apps in section part where user can click play button and go to media player.
Thank You!
Unfortunately you can't play YouTube (or Facebook) videos with MPMoviePlayerController. You can open and play a YouTube video with UIWebView, but you can't play any other flash video (like Facebook videos).