Date post: | 17-May-2015 |
Category: |
Technology |
Upload: | emran-hasan |
View: | 7,007 times |
Download: | 0 times |
Facebook Open Stream API
Md Emran HasanCo-founder, CTORight Brain Solution Ltd.
Facebook Developer Garage Dhaka
August 16, 2009
Open Stream API
• Allows 3rd party developers use the Facebook’s
activity stream inside their own applications and
services.
• Applications will be able to filter and remix the stream
– Status updates
– Photos
– Videos
– Notes
– Likes
– Comments
Live Stream Widget• Embeddable Social Widget
• Show on App Canvas or Profile Tab using fb:live-stream FBML tag
• Show on external website using
• Easy copy-and-paste set-up via http://www.facebook.com/developers/wizard.php
Live Stream Box - Code
<fb:live-stream width="400" height="500">
</fb:live-stream>
Things to consider• Facebook Authentication
• Stream Permission
• Reading Stream Stories
• Publishing Stream Stories
Facebook Authentication• Facebook Application
• Facebook Connect (on 3rd party sites)
Stream Permission• read_stream
• publich_stream
• methods:
– fb:prompt-permission tag
– FB.Connect.showPermissionDialog
Reading Stream Stories• stream.get (PHP) and stream_get (JS)
• stream.getComments (PHP) and stream_getComments (JS)
• stream.getFilters (PHP) and stream_getFilters (JS)
Publishing Stream Stories• stream.publish / stream.remove
• FB.Connect.streamPublish
• stream.addComment / stream.removeComment
• stream.addLike / stream.removeLike
References
• http://wiki.developers.facebook.com/index.php/Using_the_Open_Stream_API
• http://wiki.developers.facebook.com/index.php/Facebook_Connect_Tutorial1
• http://wiki.developers.facebook.com/index.php/JS_API_M_FB.ApiClient.stream_get
• http://wiki.developers.facebook.com/index.php/JS_API_M_FB.Connect.showPermissionDialog
Quick Start Example
http://www.phpfour.com/fbstream
Follow me on Twitter:http://twitter.com/phpfour
Telephone: +880 173 0053050
Email:[email protected] Address:Right Brain Solution Ltd.Flat B4, House 45, Road 27, Block A, Banani, Dhaka 1213, Bangladesh.
Web:http://www.phpfour.comhttp://www.rightbrainsolution.com
Contact Questions