1 / 15

Introduction to Bebo Applications

Introduction to Bebo Applications. John Maver http://www.thoughtlabs.com john@thoughtlabs.com (978) 204-9239. Overview. Parts of a Bebo Application Creating an Application User Management Doorbell Overview The Profile Canvas Page News stories and Invites. Parts of a Bebo Application.

soo
Download Presentation

Introduction to Bebo Applications

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Bebo Applications John Maver http://www.thoughtlabs.com john@thoughtlabs.com (978) 204-9239

  2. Overview • Parts of a Bebo Application • Creating an Application • User Management • Doorbell Overview • The Profile • Canvas Page • News stories and Invites

  3. Parts of a Bebo Application • Bebo URL • Callback URL • Canvas Page • Profile Box • Invitations • News Stories

  4. Creating an Application • Install the Bebo Developer Application • Get a Server • Set up your web host • Get the Bebo library • Create your index.php file

  5. Application Settings

  6. Sample Index.php require_once "bebo.php"; // Global definitions for your app $appVisibleName = "Favorite Birds"; $appApiKey = "copy API Key from the developer application page"; $appSecret = "copy API Secret from the developer application page"; $appCallback = "http://myserver.com/favoritebirds "; $appBeboURL = "http://apps.bebo.com/favoritebirds/"; // Force everyone to add the application. // If they have already added it, then display the page $bebo = new Bebo( $appApiKey, $appSecret ); $userID = $bebo->require_add(); // Display the Canvas page displayPage($bebo); // Update the user's profile updateProfile($bebo); // Publish a news story publishStory($bebo);

  7. Advanced User Management • All users must add the application to interact • Three user states – Just added, Normal user, Removing • Using $_REQUEST params to customize • Post-Add Handlers change the behavior • Handling remove

  8. User Management Example // An existing user will have the fb_sig_in_canvas variable set, unless they are removing if (isSet($_POST) && isSet($_POST['fb_sig_in_canvas'])) { // Bebo will pass their user id and that they have added the application if ( isSet($_POST['fb_sig_user']) && $_POST['fb_sig_added'] == 1 ) { $userID = $_POST['fb_sig_user']; // If the user has just installed, Bebo will pass installed as a GET parameter if ( isSet($_GET) && isSet($_GET['installed']) ) { newInstall($userID); } // Normal users will go through here, so display the page $bebo = new Bebo( $appApiKey, $appSecret ); displayPage($bebo); // Update the user's profile updateProfile($bebo); // Publish a news story publishStory($bebo); } }

  9. User Management - continued // If you set up your own post add handler, then you must handle the add request the way you want, // and then redirect back to your Bebo URL. If you don't specify a post add handler, Bebo does this for you. else if ( isSet($_GET) && isSet($_GET['installed']) ) { $bebo = new Bebo( $appApiKey, $appSecret ); newInstall($bebo ); $bebo->redirect($appBeboURL); } // If you specify a post remove URL, then Bebo will call it with this POST variable. // After this call, you won't get anything else from this user unless they re-add your application else if ( isSet($_POST) && isSet($_POST['fb_sig_uninstall']) ) { $userID = $_POST['fb_sig_user']; uninstallUser( $userID); } // 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 // 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 // the existing user path above else { $bebo = new Bebo( $appApiKey, $appSecret ); $bebo->require_add(); }

  10. Doorbell Overview - Profile Actions Click to do MockAjax callback Links to friend profiles

  11. Doorbell Overview – Canvas Tabs to other Pages Click to do MockAjax callback Navigation Leaderboard

  12. Doorbell Overview – Rankings

  13. Doorbell Overview – Customize

  14. Doorbell Overview – Invite

  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 john@thoughtlabs.com (978) 204-9239

More Related