introduction to bebo applications
DESCRIPTION
Introduction to Bebo Applications. John Maver http://www.thoughtlabs.com [email protected] (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. - PowerPoint PPT PresentationTRANSCRIPT
![Page 2: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/2.jpg)
Overview Parts of a Bebo Application Creating an Application User Management Doorbell Overview
The Profile Canvas Page News stories and Invites
2
![Page 3: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/3.jpg)
Parts of a Bebo Application Bebo URL Callback URL Canvas Page Profile Box Invitations News Stories
3
![Page 4: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/4.jpg)
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
![Page 5: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/5.jpg)
Application Settings
5
![Page 6: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/6.jpg)
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
![Page 7: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/7.jpg)
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
![Page 8: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/8.jpg)
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
![Page 9: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/9.jpg)
// 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
![Page 10: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/10.jpg)
Doorbell Overview - ProfileActions
Click to do MockAjax callback
Links to friend profiles
10
![Page 11: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/11.jpg)
Doorbell Overview – Canvas Tabs to other Pages
Click to do MockAjax callback
Navigation Leaderboard
11
![Page 12: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/12.jpg)
Doorbell Overview – Rankings
12
![Page 13: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/13.jpg)
Doorbell Overview – Customize
13
![Page 14: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/14.jpg)
Doorbell Overview – Invite
14
![Page 15: Introduction to Bebo Applications](https://reader036.vdocuments.net/reader036/viewer/2022062315/568151e2550346895dc01ae4/html5/thumbnails/15.jpg)
About Thought LabsThought 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 Maverhttp://www.thoughtlabs.com
[email protected](978) 204-9239
15