Facebook Live Integration
Full Facebook Live integration including Chat, Reactions, Stars, and real-time stream events.
Overview
FaustBot's Facebook Live integration provides complete access to your Facebook streaming:
Chat Integration
Send and receive comments with full user info and profile data.
Reactions
React to Like, Love, Wow, Haha, Sad, and Angry reactions in real-time.
Stars & Tips
Respond to Facebook Stars with amounts and supporter info.
Followers & Shares
Get notified when users follow or share your stream.
Connecting Your Account
Open Facebook Settings
Click Facebook in the sidebar to open the Facebook integration page.
Connect Your Account
Click Connect Account and log in with your Facebook account. Grant the necessary permissions for live streaming access.
Select Page (Optional)
If you stream to a Facebook Page, select the page from the dropdown. Leave blank to stream to your personal profile.
Page vs Profile
Streaming to a Facebook Page provides additional features like Stars monetization and better analytics. Personal profiles have limited streaming features.
Available Triggers
FaustBot can respond to all Facebook Live events in real-time:
Chat Events
Comment Any comment on the live streamFirst Comment User's first comment in the streamCommand Comment triggered by command prefixReaction Events
Like User liked the streamLove User sent a Love reactionWow User sent a Wow reactionHaha User sent a Haha reactionSad User sent a Sad reactionAngry User sent an Angry reactionMonetization Events
Stars User sent Facebook StarsFan Subscription User subscribed as a supporterEngagement Events
Follow New page followerShare User shared the live streamViewer Join New viewer joined the streamStream Events
Stream Online Stream went liveStream Offline Stream endedViewer Count Update Current viewer count changedEffects
Actions can use these Facebook-specific effects:
Send Comment
Post a comment to the live stream.
Reply to Comment
Reply directly to a specific comment.
Like Comment
Like a user's comment.
Hide Comment
Hide a comment from the stream.
Delete Comment
Delete a specific comment.
Ban User
Ban a user from commenting.
Update Stream
Update stream title and description.
End Stream
End the live stream.
Variables
The following variables are available in Facebook triggers:
| Variable | Description |
|---|---|
%user% | Facebook username |
%displayName% | Full display name |
%userId% | Facebook user ID |
%message% | Comment text |
%commentId% | Unique comment ID |
%reaction% | Reaction type (like, love, wow, etc.) |
%stars% | Number of Stars sent |
%starsValue% | Dollar value of Stars |
%viewers% | Current viewer count |
%peakViewers% | Peak viewer count |
%shares% | Number of shares |
%streamTitle% | Current stream title |
Scripting API
Access Facebook features from your scripts via the CPH API:
Comments
# Send a comment
CPH.FacebookSendComment("Hello everyone!")
# Reply to a comment
CPH.FacebookReplyToComment(args["commentId"], "Thanks for watching!")
# Like a comment
CPH.FacebookLikeComment(args["commentId"])Moderation
# Hide a comment
CPH.FacebookHideComment(args["commentId"])
# Delete a comment
CPH.FacebookDeleteComment(args["commentId"])
# Ban a user
CPH.FacebookBanUser(args["userId"])Stream Management
# Update stream info
CPH.FacebookUpdateStream("New Title!", "Stream description here")
# End the stream
CPH.FacebookEndStream()Stream Info
# Get stream info
info = CPH.FacebookGetStreamInfo()
print(f"Title: {info.Title}")
print(f"Viewers: {info.ViewerCount}")
print(f"Peak: {info.PeakViewers}")
print(f"Reactions: {info.ReactionCount}")See the full API reference for all available methods.