For research purposes, I would like to know how to get the stream key of any Facebook Live stream. I've read tutorials on doing this for Twitch, and it seems straightforward, but I need it for Facebook.
Go to your publishing tools, then video, then live and you should be able to see your key.
Read more here:
https://iag.me/socialmedia/broadcast-computer-facebook-live/
Related
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.
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
I'm building an app that will allow users to upload videos to my Youtube channel. I have checked online about using Google Api to access the data/upload videos, but all references and examples seem to assume videos will be uploaded to the user's youtube channel, hence the process always involves using OAuth to gain approval from the user.
However, in my case the only youtube channel all users will access is mine. And I'm not even asking them to create an account on my app to upload the videos. Is there a way to do this directly from the app.
My app is an iOS app, but if you have a solution in any other language, I welcome your suggestion.
Thanks in advance
I had the same problem not so long ago. Youtube Documentation doesnt make it easy. Even though you getting access to your own Youtube channel, You still need to be authenticated using OAuth. Google makes hard for you to be vulnerable to attacks.
My solution is using a server side(API) application. What you can then do is make your iOS app hit the API.
So the tricky thing is getting the refresh token. Its hardly documented anywhere. What you can then do is follow documentation of your preferred language for the API.
The documentation can be found here https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps
Get the Refresh token:
Step 1 : Hit this url in the browser https://accounts.google.com/o/oauth2/auth?client_id=ClientID_Here&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=https://gdata.youtube.com&response_type=code&access_type=offline
It will make you log in using your youtube credential which is your google account.
You will then have to agree for google to access your account by clicking allow.
At the end it will give you a code.
Step 2 : You should then authenticate using a clientless platform.
(eg instead of browser) Use curl instead. (There plenty of 3 minute tutorials on how to use curl)
Hit this url endpoint :
curl https://accounts.google.com/o/oauth2/token -d "code=CodeFromGoogleOAuth&client_id=ClientIDHere&client_secret=ClientSecretHere&redirect_uri=urn:ietf:wg:oauth:2.0:oob&grant_type=authorization_code"
You should then get a refresh token in the response.
There are alot of examples of how to upload from then on like
https://developers.google.com/youtube/v3/code_samples/dotnet
In the example above you have to avoid using the GoogleWebAuthorizationBroker use Googles one instead. Look for RefreshToken Field
It is not possible to allow third parties to upload videos to a single YouTube account with the YouTube Data API, and that is by design. See this Google Blog, explaining "It’s tempting to design a system in which all videos are uploaded to a single “master” YouTube account, but this is always the wrong approach."
A potential workaround is to use YouTube Direct Lite, which allows you to easily build and moderate a playlist on your YouTube account comprised of videos uploaded by your users on their accounts.
This is my first post, I'm glad to join the community. I have very limited, practically no experience with coding, however I am working on something that requires me to jump into coding, so here I am.
My objective is to use the Facebook Advertising tracking pixel to track Soundcloud plays on my page and ultimately target people who have been listening to my tracks on Soundcloud.
Facebook usually allows you to track conversions from your own website, however it says that If you do not own the website where you are trying to track some information from, you should contact the website and ask them.
I have tried contacting Soundcloud but obviously received no response.
I was wondering wether there was a way to get around the issue that I do not own the website and therefore cannot copy and paste the Facebook pixel into Soundcloud's HTML.
I have done some research online, looking into forums, but there seems to be no discussion about this online, at least nothing that I could understand with my limited knowledge.
Here are a few links i checked out before posting here, unfortunately with little success.
http://www.unified.com/developers/earned-measurement/guides/conversion-soundcloud-plays/
http://www.unified.com/developers/earned-measurement/apis/conversions-js/
Thank you for your time,
Any help is appreciated.
Kindest regards,
Oliviero
I'm pretty new to facebook app. I want to make a simple app for learning. I want to create an app that visits mysite.com/page.json and prints some pretty html. Then i'd like to scan the json for 'private_message' and notify the user (and not publicly post on his/her wall) about the pm and print the message in their notification area.
The later is mostly what i want to learn. Where can i find the API reference? I looked at fql/notification but it looks like its looking at the notifications when i want to post a notification.
Applications cannot send private messages to users. Here is the discussion about it on the facebook developers forums.
Applications only have read-only access to the message inbox with the read_mailbox permissions.
I've gone through as much documentation on this topic as I can find on the Facebook's developer portal, and all I can find are ways to read notifications (the world icon at the top of the page) and mark notifications as unread, but I can't find any way create them. The best documentation I found on this topic was here:
http://developers.facebook.com/docs/reference/api/user/#notifications
Anyone have better information about this?