开发者

How to setup facebook stream api

开发者 https://www.devze.com 2023-02-02 17:30 出处:网络
I\'m currently investigating the possibilities of the facebook (and twitter) streaming api. I read the docs but after doing many google searches I still can\'t figure out how to get a realtime stream

I'm currently investigating the possibilities of the facebook (and twitter) streaming api. I read the docs but after doing many google searches I still can't figure out how to get a realtime stream from facebook.

If I know it correctly, facebook let's you subscribe to a stream. When there are new updates facebook does a post request to your callback server and let's you handle that information.

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

And is it possible for one registered facebook app to have multiple users connected to it?

Thanks in advanc开发者_Go百科e.


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

Yes, you can have multiple users of your one app id. Be sure to pay attention to the uid of each entry in the array of data your callback server receives. See the "Change Notifications" section of https://developers.facebook.com/docs/reference/api/realtime/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号