Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
John Maver http://www.thoughtlabs.com [email_address] (978) 204-9239
Overview <ul><li>Parts of a Bebo Application </li></ul><ul><li>Creating an Application </li></ul><ul><li>User Management <...
Parts of a Bebo Application <ul><li>Bebo URL </li></ul><ul><li>Callback URL  </li></ul><ul><li>Canvas Page </li></ul><ul><...
Creating an Application <ul><li>Install the Bebo Developer Application  </li></ul><ul><li>Get a Server </li></ul><ul><li>S...
Application Settings
Sample Index.php <ul><ul><li>require_once &quot;bebo.php&quot;; </li></ul></ul><ul><ul><li>// Global definitions for your ...
Advanced User Management <ul><li>All users must add the application to interact </li></ul><ul><li>Three user states – Just...
User Management Example <ul><ul><li>// An existing user will have the fb_sig_in_canvas variable set, unless they are remov...
<ul><ul><li>// If you set up your own post add handler, then you must handle the add request the way you want, </li></ul><...
Doorbell Overview - Profile Actions Click to do MockAjax callback Links to friend profiles
Doorbell Overview – Canvas  Tabs to other Pages Click to do MockAjax callback Navigation Leaderboard
Doorbell Overview – Rankings
Doorbell Overview – Customize
Doorbell Overview – Invite
About Thought Labs Thought Labs provides consulting services for social media with a specialization in Social Networking t...
Upcoming SlideShare
Loading in …5
×

Intro To Bebo Applications by Thought Labs

3,436 views

Published on

John Maver's slide deck from the Graphing Social Patterns East conference in Washington, D.C. June 9, 2008.

Published in: Technology, Business
  • Be the first to comment

Intro To Bebo Applications by Thought Labs

  1. 1. John Maver http://www.thoughtlabs.com [email_address] (978) 204-9239
  2. 2. Overview <ul><li>Parts of a Bebo Application </li></ul><ul><li>Creating an Application </li></ul><ul><li>User Management </li></ul><ul><li>Doorbell Overview </li></ul><ul><ul><li>The Profile </li></ul></ul><ul><ul><li>Canvas Page </li></ul></ul><ul><ul><li>News stories and Invites </li></ul></ul>
  3. 3. Parts of a Bebo Application <ul><li>Bebo URL </li></ul><ul><li>Callback URL </li></ul><ul><li>Canvas Page </li></ul><ul><li>Profile Box </li></ul><ul><li>Invitations </li></ul><ul><li>News Stories </li></ul>
  4. 4. Creating an Application <ul><li>Install the Bebo Developer Application </li></ul><ul><li>Get a Server </li></ul><ul><li>Set up your web host </li></ul><ul><li>Get the Bebo library </li></ul><ul><li>Create your index.php file </li></ul>
  5. 5. Application Settings
  6. 6. Sample Index.php <ul><ul><li>require_once &quot;bebo.php&quot;; </li></ul></ul><ul><ul><li>// Global definitions for your app </li></ul></ul><ul><ul><li>$appVisibleName = &quot;Favorite Birds&quot;; </li></ul></ul><ul><ul><li>$appApiKey = &quot;copy API Key from the developer application page&quot;; </li></ul></ul><ul><ul><li>$appSecret = &quot;copy API Secret from the developer application page&quot;; </li></ul></ul><ul><ul><li>$appCallback = &quot;http://myserver.com/favoritebirds &quot;; </li></ul></ul><ul><ul><li>$appBeboURL = &quot;http://apps.bebo.com/favoritebirds/&quot;; </li></ul></ul><ul><ul><li>// Force everyone to add the application. </li></ul></ul><ul><ul><li>// If they have already added it, then display the page </li></ul></ul><ul><ul><li>$bebo = new Bebo( $appApiKey, $appSecret ); </li></ul></ul><ul><ul><li>$userID = $bebo->require_add(); </li></ul></ul><ul><ul><li>// Display the Canvas page </li></ul></ul><ul><ul><li>displayPage($bebo); </li></ul></ul><ul><ul><li>// Update the user's profile </li></ul></ul><ul><ul><li>updateProfile($bebo); </li></ul></ul><ul><ul><li>// Publish a news story </li></ul></ul><ul><ul><li>publishStory($bebo); </li></ul></ul>
  7. 7. Advanced User Management <ul><li>All users must add the application to interact </li></ul><ul><li>Three user states – Just added, Normal user, Removing </li></ul><ul><li>Using $_REQUEST params to customize </li></ul><ul><li>Post-Add Handlers change the behavior </li></ul><ul><li>Handling remove </li></ul>
  8. 8. User Management Example <ul><ul><li>// An existing user will have the fb_sig_in_canvas variable set, unless they are removing </li></ul></ul><ul><ul><li>if (isSet($_POST) && isSet($_POST['fb_sig_in_canvas'])) { </li></ul></ul><ul><ul><li>// Bebo will pass their user id and that they have added the application </li></ul></ul><ul><ul><li>if ( isSet($_POST['fb_sig_user']) && $_POST['fb_sig_added'] == 1 ) { </li></ul></ul><ul><ul><li>$userID = $_POST['fb_sig_user']; </li></ul></ul><ul><ul><li>// If the user has just installed, Bebo will pass installed as a GET parameter </li></ul></ul><ul><ul><li>if ( isSet($_GET) && isSet($_GET['installed']) ) { </li></ul></ul><ul><ul><li>newInstall($userID); </li></ul></ul><ul><ul><li>} </li></ul></ul><ul><ul><li>// Normal users will go through here, so display the page </li></ul></ul><ul><ul><li>$bebo = new Bebo( $appApiKey, $appSecret ); </li></ul></ul><ul><ul><li>displayPage($bebo); </li></ul></ul><ul><ul><li>// Update the user's profile </li></ul></ul><ul><ul><li>updateProfile($bebo); </li></ul></ul><ul><ul><li>// Publish a news story </li></ul></ul><ul><ul><li>publishStory($bebo); </li></ul></ul><ul><ul><li>} </li></ul></ul><ul><ul><li>} </li></ul></ul>
  9. 9. <ul><ul><li>// If you set up your own post add handler, then you must handle the add request the way you want, </li></ul></ul><ul><ul><li>// and then redirect back to your Bebo URL. If you don't specify a post add handler, Bebo does this for you. </li></ul></ul><ul><ul><li>else if ( isSet($_GET) && isSet($_GET['installed']) ) { </li></ul></ul><ul><ul><li>$bebo = new Bebo( $appApiKey, $appSecret ); </li></ul></ul><ul><ul><li>newInstall($bebo ); </li></ul></ul><ul><ul><li>$bebo->redirect($appBeboURL); </li></ul></ul><ul><ul><li>} </li></ul></ul><ul><ul><li>// If you specify a post remove URL, then Bebo will call it with this POST variable. </li></ul></ul><ul><ul><li>// After this call, you won't get anything else from this user unless they re-add your application </li></ul></ul><ul><ul><li>else if ( isSet($_POST) && isSet($_POST['fb_sig_uninstall']) ) { </li></ul></ul><ul><ul><li>$userID = $_POST['fb_sig_user']; </li></ul></ul><ul><ul><li>uninstallUser( $userID); </li></ul></ul><ul><ul><li>} </li></ul></ul><ul><ul><li>// If the user goes to your callback URL directly, they didn't come in from Bebo, and you will have no information about the user </li></ul></ul><ul><ul><li>// In most cases, you will just want to force the user to add the application by using require_add. This will force them back through </li></ul></ul><ul><ul><li>// the existing user path above </li></ul></ul><ul><ul><li>else { </li></ul></ul><ul><ul><li>$bebo = new Bebo( $appApiKey, $appSecret ); </li></ul></ul><ul><ul><li>$bebo->require_add(); </li></ul></ul><ul><ul><li>} </li></ul></ul>User Management - continued
  10. 10. Doorbell Overview - Profile Actions Click to do MockAjax callback Links to friend profiles
  11. 11. Doorbell Overview – Canvas Tabs to other Pages Click to do MockAjax callback Navigation Leaderboard
  12. 12. Doorbell Overview – Rankings
  13. 13. Doorbell Overview – Customize
  14. 14. Doorbell Overview – Invite
  15. 15. About Thought Labs Thought Labs provides consulting services for social media with a specialization in Social Networking technologies. We work closely with our clients to build their social media investments from their inception to maturity with a strong focus on ROI. We can help clients unravel the uncertainty of entering into the world of Facebook, OpenSocial, Web 2.0, and social media. We provide an entire range of services that meets the needs of today's demanding web markets: custom application development, widget and gadget creation, marketing and advertising advice, development of ROI metrics for marketing campaigns, user-generated content platform analysis and creation (wikis, blogs, and forums), and social networking expertise. Let us help you to make your social media visions a reality. John Maver http://www.thoughtlabs.com [email_address] (978) 204-9239

×