Follow @endyourif rss Facebook LinkedIn

Bebo Development Scares Me Bebo Development Scares Me

Published on May 7, 2009

Today at work, we've begun looking into creating some Bebo applications.  I know it's a bit behind in the times, but we've been busy with Facebook, iPhone, and Google Gadgets.  It's now time to sink our teeth into Bebo.

I spent about 30 minutes setting up Bebo and reviewing a simple three step process to setup external authentication and it didn't work!  Not only that, when I went to download the API I had to actually right-click and choose "Save As" because it just loaded the whole API as text in my browser.  Talk about a shotty setup.

The API download problems aside, let me tell you more about my authentication problem.  The three step example I followed is from this URL here:

*** I apoligize if any of the code below is incorrect, I'm typing by memory on this one ***

So, I begin by instatiating the Bebo API:

$bebo = new Bebo($apikey, $secretkey);

Next, I get an auth token like the instructions say:

$token = $bebo->create_authToken();

Now, I create a link that goes to the login.php page on Bebo.  I do as they say and pass in my API key and auth token.  I also pass in a next URL.

On the page where my next URL is, I re-instatiate the Bebo client and I get the auth token from the URL.  And like step 3 says I get the session:

$session = $bebo->auth_getSession($_GET['auth_token']);


Great, all set according to the three steps.  So I load the first page in my browser and click the link.  I'm now directed to the Bebo login page.  I log in with my username and password.  I now need to give access to my application.  There is also a checkbox on this page, that is not clear, but I assume it to be the "infinite session" they keep talking about.  It's checked by default, so I leave it as is and press the "Yes" button.

After all of this I get redirected back to my "next" page that I specified and my print_r of session reveals that "the app is not visible to me"????  Not sure WTF this means.  I continue tinkering around for a bit and I randomly decided to uncheck the "infinite session" checkbox and press yes.  Guess what, it worked, now I have a valid session.

I'm now thinking that, ok, it's not going to be such a big deal because I remember reading about an option to hide the checkbox.  I go and update my link to add hide_checkbox=true.  Try the process all over again.  Guess what?  The checkbox is still there...

At this point I'm at a loss and we will make a decision tomorrow about whether to continue with Bebo, because it does not look promising so far.

If anyone has encountered something similar and solved it, let me know, I would be grateful.

Tags: Bebo

Related Posts

About Jamie Munro

Welcome to my blog. I have been compiling articles since 2009! Below is a list of every post I've ever created. Some of my major focuses have been compiling the best source of jQuery tutorials on the Internet today. A recent focus of mine is now focusing on creating the best SQL Tutorials for Beginners, Intermediate and Advanced Users. This is a compiliation of all my experience about how to do common SQL commands to optimize for performance. As you might see from the links around here, I've also written and published 5 books. My first and last book are focused around ASP.NET MVC and Web API tutorials. The last book has a big focus on integrating Knockout.js as the MVVM for the front-end code. O'Reilly Media was so interested in Knockout.js that they actually commissioned me to write that book first as it is one of the only books dedicated entirely to this MVVM library. So if you're looking for the best Knockout.js tutorials, I've compiled the best list. My first book, even though it was self published, was on the PHP framework: CakePHP. I used this framework for years and many of my first ever exampes were all focused on CakePHP tutorials that provide so many fantastic PHP examples. There are so many Javascript tutorials out there, but I noticed that one of the things I work on most with Javascript is arrays. With this I've worked hard on compiling a big list of really advanced Javascript array examples. These array examples are amazing including how to group by, get distinct array elements and so many more. I've also dabbled a little bit with Node.js and during those experiments I definitely ran into some common errors like Can't set headers after they are sent, Solving No Access-Control-Allow-Origin with Node js and Express, and Uncaught ReferenceError: require is not defined. With these common errors I've compiled a list of Node.js tutorials that help solve these problems, but more importantly getting you started with the basics.