Embed Live Streaming From Facebook Page When They Start Streaming - facebook

I am trying to know how get just the live video stream from a facebook page. In my case, I want to build an app to my church and I need just their live stream. On their facebook page are a lot of videos that was streamed, but I'm not interested that, I want just their live stream.
Problem: I don't know when they start streaming and I don't know how get it, I'd like to have just the streaming video that they start streaming.
Someon can help me with that?

IIRC you also asked this question in the FB Dev group and added the info that you do not have access to those pages. W/o access to them or having admin users granting your app access to them you cannot retrieve notifications/callbacks whenever a broadcast starts. Even when just polling them (using the endpoint CBroe mentioned) you need a page access token to do so.

Related

My Facebook streaming code doesn't work anymore, FB want user to click on Go live, page admin may not be available at the time of video shooting

I was using RTMP FFmpeg to streaming to the facebook, things work fine but it looks like Facebook now want the user to click on the live video on facebook.com to go live. This thing add the complexity that for example in a company 5 people are working and live streaming a video project and suddenly senior leave his office and go home early, he is the only person who has the facebook-page admin access, now video will not go live because of the requirement of click on live video on facebook UI.
Is facebook have something for this condition. I mean I use RTMP protocol in a software so people can do whatever they can easily and without having technical knowledge. I don't want the person to click on Go live every time he is using the software. Anyone have a solution for trouble like this.
Note: I am writing this question since it's related to facebook development and they told me to use StackOverflow for all dev related query.

Embed Facebook Live video comments on page

I am using Facebook Live inside of a web app to live stream videos. I am wondering if it is possible to include the live commenting associated with the video on my site in real time. I know I can grab the comments from the graph API, however this is not real time. The comment embed widget is also not real time and would need to be constantly refreshed.
The documentation says :
"You can read live video comments by polling the Live Video
Comments
edge."
What is polling? How do I do this and is it possible from a front end web app.
Basically my question is how do I include the live comments along with Facebook Live video on my own website.
This is now available via SSE streams
https://developers.facebook.com/docs/graph-api/server-sent-events/endpoints/live-comments
I know I can grab the comments from the graph API, however this is not real time.
This is as real time as it can get. If someone posts a comment and you immediately query the Graph API, you will see their comment.
What is polling?
As there is currently no streaming data endpoint for comments, you must query the comments on the live video repeatedly. That is, every 2 seconds or so, refresh the data.
This is done by making a Graph API GET request for /{video-id}/comments. I also suggest setting "order": "reverse_chronological" in the parameters so that you get the newest comments first.
You can see some sample code for doing this as part of the Live Comments Teleprompter: https://github.com/fbsamples/live-comments-teleprompter/blob/master/js/main.js#L89-L103

Accessing User 'Most Listened To' using Spotify / Echo Nest / Facebook API

I want to know if I can access a user's play history (more specifically what songs they listen to the most) for an app. The app I am building can perform the same goal with iTunes using their built-in play counter. I know Spotify uses a similar counter, but I assume for privacy concerns they don't want to deal with privacy concerns from concerned users. However, I saw a few instances where it was suggested that this task could be accomplished using Facebook's API, or Echo Nest's API. Please let me know if anyone has some constructive suggestions toward finding a way to legally obtain a particular users 'most listened to songs', or something to that effect.
SB
There's some documentation about Open Graph Music on the Facebook Developer homepage:
https://developers.facebook.com/docs/opengraph/music/
Baseline is that you only can request a User's play history if he gave you app the explicit right to read his data.
The relevant permissions would be
user_actions.music https://developers.facebook.com/docs/facebook-login/permissions/v2.1#reference-user_actions_music
user_actions:{app_namespace} https://developers.facebook.com/docs/facebook-login/permissions/v2.1#reference-user_actions__app_namespace_
Then, you should be able to request
GET /me/music.listens
according to https://developers.facebook.com/docs/reference/opengraph/action-type/music.listens/ You'll need to perform the aggregation of the most played songs/artists yourself, because there's no endpoint for that.

Can track belong to the application and not individual users?

My application isn't going to be revolved around soundcloud users, I will be using it for its nice api that is provided to stream audio. I also want to use the javascript upload feature but that seems to be out of the question too.
The record widget should be able to upload the audio to your server so that you can upload the audio not as an individual user.
I still haven't been able to get my app to work without using their authentication window.
Any help would be appreciated.
Nearly everything you do with the SoundCloud API must be done on behalf of a SoundCloud account. You can only use the SoundCloud API to stream content from or upload content to a SoundCloud account.
If you'd like to have SoundCloud functionality in your app, I'd recommend allowing users to connect their SoundCloud accounts.
"Authenticating without the SoundCloud Connect Screen", from the API docs: http://developers.soundcloud.com/docs/api/guide#user-credentials
With this method you can log in as a user in the code. Since every app must be registered to a user anyway, you can make a new username to register the app, and log in with that one.

Post video to wall from IOS, through server

I've done a fair bit of searching for this, but can't seem to find an answer for this specific problem. I'm fairly new to web development as well, so forgive me if the answer is right in front of my eyes.
I have an IOS app which needs to allow a user to post a video to his FB wall, which is created from content the user creates from within the app.
However, the rendering of the video is too processor-instensive for the device itself, so I'm hoping to do something like the following:
Allow the user to authenticate the post, using the IOS login.
When this happens, ipload an xml file to a remote server which has all the data needed to render the video.
This server is running a custom app which will render the video and then complete the post operation, uploading the video with the user's credentials and posting it to their wall.
Is this possible? If not, can anyone suggest alternatives? Maybe I could host the file somewhere else and then simply post a link to it on the wall directly from the app?
Thanks in advance.
Sounds like this tutorial is what you want:
How-To: Use the Graph API to Upload a Video (iOS)
You'll obviously have to tweak it since you're doing the upload server side, but should be able to figure that out. The basics you'll needto do:
have the iOS app log the user in and grant the correct permissions
after login, keep track of the user's facebook access token
When submitting the video-generation request to your server, include the user's access token
When the server is ready to post, it uses that access token to post on the user's behalf.