How to setup facebook api stream

I am currently exploring the possibilities of streaming Facebook facebook (and twitter). I read the docs, but after many google searches, I still can't figure out how to get the stream in real time from facebook.

If I know this correctly, facebook will let you subscribe to the stream. When new updates appear, facebook sends a request to your callback server and allows you to process this information.

I already found an example callback on the facebook github page. But how can I subscribe to the stream?

And is it possible for one registered facebook application to connect to it by several users?

Thanks in advance.

+5
source share
1 answer

Here you can find sample applications that show how to subscribe to the stream. https://github.com/facebook/real-time/tree/master/samples

Yes, you can have multiple users of your single application identifier. Be sure to pay attention to uideveryone entryin the dataset that your callback server receives. See the “Change Notifications” section https://developers.facebook.com/docs/reference/api/realtime/

+4
source

All Articles