facebook-live-poll-js
facebook-live-poll-js copied to clipboard
Facebook Live Poll - Client-side only implemented in JS
The Simplest Scripts for Facebook Live Poll
- Portable, JS only implementation
- Serverless, you can use your own PC or Mac to stream the live poll
- Easy, you only need to change 2 lines of code
- Free
Usage
1. Clone or Download this repo
git clone [email protected]:sydneyitguy/facebook-live-poll-js.git
2. Get your Facebook Access token
https://developers.facebook.com/tools/access_token
3. Download OBS (Open Broadcaster Software)
https://obsproject.com/download
4. Create a live stream with a local browser source
Select BrowserSource from OBS, and index.html file you donwloaded from Step 1.

5. Create Live Poll on Facebook and connect to your OBS stream source

(You can find a detailed tutorial here)
6. Get Video ID from the video URL

7. Lastly, edit live-poll.js with your configuration
var ACCESS_TOKEN = '1234567890|WHATEVERblahblah'; // Access token from `Step 2`
var VIDEO_ID = '1234567890'; // Video ID from `Step 7`
- Don't forget you refresh your BrowserSource on your OBS
- You can change the images whatever you like (just replace
left.jpgandright.jpgin/imagesdirectory)
License
This project is licensed under the terms of the MIT license.