Iskander

903 views
871 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
903
On SlideShare
0
From Embeds
0
Number of Embeds
18
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • How to run a social media campaign on Facebook • targeting your audience, good and bad concepts, engaging a team, tracking results Social media campaign lessons learned on Facebook • what has worked and what hasn’t, which publishers are getting the most traction, where the platform is heading
  • Iskander

    1. 1. A Quick Tour of The Open Stream API Iskandar Najmuddin Nudge - nudgelondon.com Facebook Developer Garage London www.facebookgarage.co.uk May13 th , 2009
    2. 2. <ul><li>Why, it’s the Facebook home page! </li></ul>What is this thing you call “The Stream”?
    3. 3. Permissions <ul><li>Named extended permissions: read_stream , publish_stream </li></ul><ul><li>Streamlined prompt-permission – comma-separated named permissions results in chain of dialogs. </li></ul><ul><li>publish_stream is aggregated status_update , photo_upload and friends. </li></ul><ul><li>While in beta, only Developers of app can grant publish_stream </li></ul>
    4. 4. Reading the Stream: API calls <ul><li>stream.get – the Biggie, returns shedloads of data including comments and likes </li></ul><ul><ul><li>Can filter by application, friend list, source, date range. </li></ul></ul><ul><ul><li>Call using any user id – but no data unless read_stream permission granted. </li></ul></ul><ul><ul><li>Data returned will have appropriate privacy restrictions, based on current user session. </li></ul></ul><ul><li>stream.getComments – get comments by post ID. </li></ul><ul><li>stream.getFilters – get a list of filters (Friend Lists, applications, etc) </li></ul>
    5. 5. Reading the Stream: FQL <ul><li>New & Updated FQL Tables </li></ul><ul><li>stream – like the stream.get API call, returns loads of data, can contain comments and likes, applies privacy </li></ul><ul><li>stream_filter – contains data on filters that can be applied to the stream </li></ul><ul><li>comment – new post_id column, matches main key on stream table </li></ul><ul><li>profile – simple profile data: name, profile pics, URL, type (page or user) </li></ul><ul><li>connection – who’s following who, index by source_id </li></ul>
    6. 6. Reading the Stream: ATOM <ul><li>Uses ATOM Activity Extensions (Draft) from http://activitystrea.ms/ </li></ul><ul><li>Construct feed URL like this: </li></ul><ul><li>http://www.facebook.com/activitystreams/feed.php?source_id=<user-id>&app_id=<yourApplicationId>&session_key=<session_key>&sig=<checksum-slash-signature>&v=0.7&read&updated_time=<UnixTime> </li></ul><ul><li>Response XML is ATOM with the activity namespace: xmlns:activity= http://activitystrea.ms/spec/1.0/ </li></ul><ul><li>Normal ATOM/RSS readers can consume this feed, while Activity Streams-aware apps should be able to take special advantage </li></ul><ul><li>But: So far, only user-generated content is in feed, App-generated content to come later. </li></ul>
    7. 7. Writing to the Stream <ul><li>What can you do? </li></ul><ul><ul><li>Update statuses </li></ul></ul><ul><ul><li>Upload photos </li></ul></ul><ul><ul><li>Upload videos </li></ul></ul><ul><ul><li>Write notes </li></ul></ul><ul><ul><li>Share links </li></ul></ul><ul><ul><li>“ Like” content (also remove “Like”) </li></ul></ul><ul><ul><li>Comment on content (also remove comments) </li></ul></ul><ul><ul><li>Remove posts created by your app </li></ul></ul><ul><li>No template bundles required </li></ul><ul><li>Attachments possible: image, Flash, MP3, or video </li></ul>
    8. 8. Final Thoughts <ul><li>Access to the Open Stream is also available via Facebook Connect, and the Javascript API </li></ul><ul><li>See the Facebook Developer Wiki for detailed info </li></ul><ul><li>The future may bring: </li></ul><ul><ul><li>More AIR desktop apps </li></ul></ul><ul><ul><li>Better mobile integration </li></ul></ul><ul><ul><li>More real-time mash-ups and apps, Twitter-style </li></ul></ul><ul><ul><li>More privacy press stories and user tales of woe </li></ul></ul><ul><ul><li>Facebook to provide more core real-time features </li></ul></ul><ul><ul><li>Stuff we can’t expect or imagine! </li></ul></ul>
    9. 9. Contact Details Follow me on Twitter: twitter.com/iskandar Telephone : 020 7096 0146 Email : [email_address] Address : Nudge 23-24 Greek Street Soho, London W1D 4DZ Web : www.nudgelondon.com   “ dedicated social media experts” – Inside Facebook, June 2008   Recent Clients Sign up to our award winning social media update Little Nudge at nudgelondon.com

    ×