GithubHelp home page GithubHelp logo

jamesthehacker / facebook-live-reactions Goto Github PK

View Code? Open in Web Editor NEW
292.0 24.0 101.0 1.79 MB

The easiest way to create interactive Facebook live streams. Displays reaction count and live shoutouts :)

License: MIT License

PHP 97.21% Shell 2.79%
reactions facebook-live-reactions facebook-live-streams facebook stream audio php reaction-counts video shoutout

facebook-live-reactions's People

Contributors

jamesthehacker avatar roukmoute avatar undergroundlabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

facebook-live-reactions's Issues

Problem fblive.php

PHP Fatal error: Uncaught Error: Class 'FBReactions\Facebook' not found in /facebook-live-reactions/fblive.php:26
Stack trace:
#0 {main}
thrown in /facebook-live-reactions/fblive.php on line 26

Change the "share" word

I tried to change the "share" word to another thing in the fblive.php but it dosnt seem to by applied. What is your instruction to change it ? I've made my changes in the strpos call...

Facebook api doesnt return all comments

Hi tried the new version and the old one in master branch. And both seems to not retrieving all the coments of the post ID. It's realy strange. And cause of that the people that are commenting the keyword dont show theire names... it's weird

I used facebook debuger

Are Reactions cumulative ?

I noticed that when I do a LOVE reaction the love totalcount increases +1, but if then I do a WOW reaction. The LOVE totalcount will decrease -1 and WOW totalcount will increase.

So it seems that the reactions are unique... doesnt matter if you click the LOVE reaction many many times. right ???

Problem with stream

Hello, when i start stream i am getting information on fb about "stream offline" but packets going, where is problem? ubuntu 16, php7
chrome_2016-11-26_06-43-22

Share and votes doesnt work

chrome_2016-11-23_11-10-54

[23-Nov-2016 10:03:06 UTC] PHP Warning: join(): Invalid arguments passed in /root/facebook-live-reactions/functions.php on line 14 [23-Nov-2016 10:03:06 UTC] PHP Notice: Undefined index: data in /root/facebook-live-reactions/fblive.php on line 57 [23-Nov-2016 10:03:06 UTC] PHP Warning: array_filter() expects parameter 1 to be array, null given in /root/facebook-live-reactions/fblive.php on line 63 [23-Nov-2016 10:03:07 UTC] PHP Notice: Use of undefined constant SETTINGS - assumed 'SETTINGS' in /root/facebook-live-reactions/functions.php on line 114 [23-Nov-2016 10:03:07 UTC] PHP Warning: Illegal string offset 'REACTIONS' in /root/facebook-live-reactions/functions.php on line 114 [23-Nov-2016 10:03:07 UTC] PHP Warning: array_keys() expects parameter 1 to be array, string given in /root/facebook-live-reactions/functions.php on line 114 [23-Nov-2016 10:03:07 UTC] PHP Warning: Invalid argument supplied for foreach() in /root/facebook-live-reactions/functions.php on line 71

How to fix it?

The Video not collect all Reactions

As you know we have more than the "public result" from every post..
some time you see the Reactions = 500
but we have more than that.. We have 200 too from share ..
you can found that from "Publishing Tools" Tab in Facebook.
can we collect this numbers too ?

Thank you

Problem with stream - ends with "This live video has ended."

When i start i got this

Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (rtmp://rtmp-api.facebook.com:80/rtmp/1130523197002349?ds=1&s_l=1&a=AaZ4MldB-BHc7tzI) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[scale @ 0x1c46b80] The ::flags= option syntax is deprecated. Use either :: or w=:h=:flags=.

And stream stops? i dont know, when i react to the post it will change the picture but overlay is visible.

Problem while streaming

I got good bitrate
frame= 6465 fps= 25 q=-1.0 Lsize= 65216kB time=00:04:18.63 bitrate=2065.7kbits/s
but in the feacebook page i got a message saying that my live is over when i click in it.
But there is the "broadcasting" header...

And if i stream an mp4 file thru facebook it's ok...

Any idea ?

Questionmark image

Hello,

first thank you for the script :)

I have 2 issues:

  • As you can see I got a bit image overlay with a questionmark (how can I solve this?)
    untitled

  • It does now displays my Likes and shouts. (how can I solve this?)

Is it related to this error:
PHP Warning: array_filter() expects parameter 1 to be array, null given in /home/ubuntu/Facebook-Live-Reactions/fblive.php on line 57

thank you.

Sox Installation error in Centos 7

Hi,

I tried to install Sox in centos 7. I searched in google and installed it. But now when i tried to run Sox command to make loop (sox audio.mp3 audio-loop.mp3 repeat 15) I got error
-bash: sox: command not found

Can you please help me.

Unknown encoder

When I try to run the script it gives me this message:

Unknown encoder 'libfdk aac'

Error when running "php fblive.php"

I get the following error everytime I run "php fblive.php"

PHP Fatal error: Class 'FBReactions\Facebook' not found in /var/www/html/live/fblive.php on line 26

stream.jpg - not updating with reactions.

I cant really pin point this issue, but looks like theres a problem redrawing the image when reactions are updated, Reactions are received properly but not displayed.

Functions.php should read settings and build reactions + positions by default

Functions.php should read the settings and build the reactions in drawReactionCount automatically. We can also use the image's width in pixels divided by the number of active reactions to properly space the reactions on the screen by default (which can still be overwritten through settings). This should allow further customization of the live image.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.