Download presentation
Presentation is loading. Please wait.
1
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 2
3
Parts of a Bebo Application Bebo URL Callback URL Canvas Page Profile Box Invitations News Stories 3
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 4
5
Application Settings 5
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); 6
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 7
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); } 8
9
// 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(); } User Management - continued 9
10
Doorbell Overview - Profile Actions Click to do MockAjax callback Links to friend profiles 10
11
Doorbell Overview – Canvas Tabs to other Pages Click to do MockAjax callback Navigation Leaderboard 11
12
Doorbell Overview – Rankings 12
13
Doorbell Overview – Customize 13
14
Doorbell Overview – Invite 14
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 15
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.