Well actually it took much longer than 10 minutes because I got into some issues. First check out my app. It doesn’t do much but its the beginning. The end goal being the dating website.
So here is what I ran into. I followed this tutorial. My webserver uses php4 but the tutorial I got from facebook was for php5. PHP4 does not support try… catch blocks. (I didn’t know that). I had to modify the appinclude.php like this:
//catch the exception that gets thrown if the cookie has an invalid session_key in it
if (!$facebook->api_client->users_isAppAdded()) {
$facebook->redirect($facebook->get_add_url());
}/*Commented out this section, not sure how to deal with this just yet.
{
//this will clear cookies for your application and redirect them to a login prompt
$facebook->set_user(null, null);
$facebook->redirect($appcallbackurl);
}*/
Then like many other’s I had to upload simplexml44-0_4_4 in php4client directory.
After that it worked like a charm.
So that was the first step towards one of my 2008’s objectives.
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment