Facebook Live Streaming: Connect Your IP Camera

Stream your IP camera to Facebook Live with webcam.io. Show your live feed on your Facebook page, in your timeline, and embed it on your website.

Overview

Why Facebook Live?

Facebook Live advantages
Advantage Description
Reach your audience Stream directly to your Facebook followers
Timeline integration Live video appears in your feed
Continuous streaming Supports 24/7 live video
Free hosting Facebook handles all viewer traffic
Mobile notifications Followers notified when you go live

Requirements

Requirements
Requirement Details
webcam.io Plan LIVE (H.264) or LIVE+ (transcoding)
Facebook Account Personal profile or Facebook Page
Camera IP camera with RTSP/HTTP stream
Bandwidth Minimum 1 Mbps upload

Limitations

Facebook Live Limitations
  • Stream keys expire and change frequently
  • “Continuous Live Video” requires manual setup
  • Embedding requires copying code before going live
  • Clicking “Finish” ends the stream permanently

Step 1: Get Your Camera Stream URL

Find your camera’s streaming URL:

rtsp://IP-ADDRESS:554/Streaming/Channels/101      (Hikvision)
rtsp://IP-ADDRESS:554/cam/realmonitor?channel=1   (Dahua)
rtsp://IP-ADDRESS/live/ch00_1                     (Axis)

Requirements:

  • H.264 encoding recommended
  • MJPEG/MxPEG work with transcoding (LIVE+ plan)
  • Camera must be accessible from the internet (port forwarding required)

See Live Streaming Setup for detailed camera configuration.


Step 2: Set Up Facebook Live

Create a Live Video Post

  1. Go to your Facebook Page or Profile
  2. Create a new post
  3. Select Live Video as the post type
  4. Select Connect (not the built-in webcam option)

Facebook Live connect option

Schedule the Stream

  1. Click Schedule (lower right)
  2. The post appears in your timeline as “Scheduled”
  3. Click Broadcaster Only: Edit Your Details to access stream settings

Facebook Live scheduled post

Enable Continuous Live Video

Required for 24/7 Streaming

Without this setting, Facebook will end your stream after a few hours.

  1. In the stream settings, go to Advanced
  2. Enable Continuous Live Video
  3. Save the setting

Facebook continuous live video setting

Get Your Stream Key

  1. Go to the Stream Key menu
  2. Copy the Server URL and Stream Key
  3. Keep this page open for the next step

Example values:

Stream key components
Field Example
Server URL rtmp://live-api.facebook.com:80/rtmp/
Stream Key 586823151663558?ds=1&a=ATgQEgOoEcw7I7Ze

Step 3: Set Up webcam.io

Create Live Stream Entry

  1. Go to webcam.io Dashboard
  2. Click Add Webcam → Select Live Stream

Configure Input

Field Value
Input URL Your camera’s RTSP URL
Input Type default

Configure Output

Combine the Facebook Server URL and Stream Key:

rtmp://live-api.facebook.com:80/rtmp/586823151663558?ds=1&a=ATgQEgOoEcw7I7Ze

Format: SERVER-URL + STREAM-KEY

Transcoding Settings

Transcoding requirements
Camera Type Transcoding
H.264 Off (copy stream)
MJPEG Required (LIVE+ plan)
Mobotix MxPEG Required (LIVE+ plan)

Save and Start

  1. Check Enable Streaming
  2. Click Save
  3. Streaming starts within 30-60 seconds

Step 4: Go Live

Verify Stream in webcam.io

Check the Status box in your Dashboard:

Status indicators
Status Meaning
🟢 OK Data being sent to Facebook
🔄 Restarting Reconnecting
🔴 Error Check configuration

Verify in Facebook

  1. Return to your Facebook stream settings
  2. Go to the Basic menu
  3. After a few minutes, you should see the live video preview

Copy Embed Code (Important!)

Do This Before Going Live!

The embed code is only accessible before clicking “Save” to go live. Copy it now or you won’t be able to embed later.

  1. Click the gear icon (upper right of settings)
  2. Select Embed
  3. Copy the iframe code to a text file

Start Broadcasting

  1. Verify everything looks correct
  2. Click Save
  3. Your stream is now live on Facebook!

Embedding on Your Website

Using the Embed Code

If you copied the embed code before going live:

<iframe 
  src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2FYOUR-PAGE%2Fvideos%2FVIDEO-ID%2F&show_text=false&width=560" 
  width="560" 
  height="315" 
  style="border:none;overflow:hidden" 
  scrolling="no" 
  frameborder="0" 
  allowfullscreen="true" 
  allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share">
</iframe>

Facebook Page Plugin (Alternative)

Embed your entire Facebook Page with live video:

<iframe 
  src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2FYOUR-PAGE&tabs=timeline&width=340&height=500" 
  width="340" 
  height="500" 
  style="border:none;overflow:hidden" 
  scrolling="no" 
  frameborder="0">
</iframe>

Responsive Embed

<div style="position: relative; padding-bottom: 56.25%; height: 0;">
  <iframe 
    src="YOUR-FACEBOOK-EMBED-URL"
    style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"
    frameborder="0"
    allowfullscreen>
  </iframe>
</div>
Embedding Troubles?

If Facebook embedding is problematic, consider YouTube or Twitch as alternatives with more reliable embedding.


Troubleshooting

Stream Ended Unexpectedly

Cause: Facebook ended the live video.

Solutions:

Stream ending issues
Issue Solution
Short interruption Enable Backup Stream in webcam.io
Continuous video not enabled Re-enable in Facebook settings
Stream key expired Create new Live Video post, get new key

To restart:

  1. Create a new Live Video post in Facebook
  2. Get the new Stream Key
  3. Update the Output URL in webcam.io

Multiple “Restarting” in Dashboard

Cause: Facebook rejected the stream, but webcam.io keeps trying.

Solution:

  1. Check if Facebook ended the live video
  2. Create new Live Video post
  3. Update stream key in webcam.io

Stream Not Appearing in Facebook

Stream visibility issues
Issue Solution
No preview Wait 2-3 minutes
Wrong stream key Verify key matches exactly
Camera not accessible Check port forwarding

Accidentally Clicked “Finish”

Unfortunately, clicking Finish in Facebook permanently ends the live video. You must:

  1. Create a new Live Video post
  2. Get a new Stream Key
  3. Update webcam.io with the new key
  4. Copy new embed code (if needed)
Never Click “Finish”

If you need to edit settings, use Save not Finish. Finish = End stream permanently.


Best Practices

For 24/7 Streaming

✅ Enable Continuous Live Video in Facebook
✅ Enable Backup Stream in webcam.io
✅ Never click "Finish" in Facebook
✅ Save embed code before going live
✅ Monitor stream daily

For Reliability

✅ Use H.264 camera (no transcoding needed)
✅ Ensure stable internet connection
✅ Set up alerts in webcam.io monitoring
✅ Have a plan for stream key rotation

For Embedding

✅ Copy embed code BEFORE going live
✅ Test embed in incognito browser
✅ Consider YouTube/Twitch for easier embedding

Facebook vs Alternatives

Platform comparison
Feature Facebook YouTube Twitch
Embedding ease ⚠️ Tricky ⚠️ Needs permissions ✅ Easy
24/7 streaming ✅ Yes ✅ Yes ✅ Yes
Stream key stability ❌ Changes often ✅ Stable ✅ Stable
Audience reach Your followers Everyone Gaming/IRL community
Archive videos Optional Auto-created Optional

Recommendation: If you primarily want to embed on your website, YouTube or Twitch are more reliable. Use Facebook if reaching your Facebook audience is the priority.


FAQ

Is Facebook Live free?

Yes, Facebook Live is free. You need a webcam.io LIVE or LIVE+ plan for the streaming service.

How long can I stream?

With “Continuous Live Video” enabled, indefinitely. Without it, streams may be limited to 8 hours.

Can I stream to multiple Facebook pages?

Yes, but each needs its own webcam.io Live Stream entry with a unique stream key.

Why does my stream key keep changing?

Facebook generates new stream keys for each Live Video post. Unlike YouTube, you can’t reuse keys.

Can viewers comment on my live video?

Yes, Facebook Live includes real-time comments. You can moderate them in Facebook settings.

What happens when I stop streaming?

The live video becomes a regular video post on your page/timeline (unless you delete it).


Next Steps

Back to top