Tag Archives: facebook

Some progress on Facebook project

My PHP has gone rusty. I have been spending a quite bit of time research different syntax for PHP. Anyways, now my app has just one basic ability, check to see if user is a new app user, and if so then gather some basic info in the database.

I have set the app in dev mode, so I don’t think anyone can really add it, (other than developers, of course). But here’s the URL anyways: http://amerkhalid.com/facebook/Stuff/.

So let me present to you my database structure for now. It is still evolving:

Project: Peace, Love & Open Source

I am hoping today i will get some chance to do coding on my facebook project. Last night, I was making a feature’s list for the version 1.0. I am planning to keep whole project fully open sourced. This is more like a proof of concept, therefore, i am not worried about competition.

I guess the first part is to explain what is the project about. It is a simple list of things, stuff, locations, arts and everything else that anyone likes or dislikes. I got idea for this from Acosta and Karl, I was able to integrate their ideas together easily, however, I am working on my idea of dating app in this list.

Maybe later today, I will upload my feature list.

not doing good…

last week was nightmare. I changed my work schedule to go in late and work late in the evening. I thought it would give me all the time to do my own things in the morning but I ended up just sleeping trough the mornings. There is not much I can do late at the night. So today I asked my boss to go back on original schedule.

I was on my way to home right but there was huge traffic jam on 360. So I decided to stop by Starbucks. I should have gone for rock climbing.

I didn’t run at all last week. So bad!

And I couldn’t work on my SCJD project and facebook project.

I was super busy with work stuff. I did manage to eat at new and different resturant everyday last week. Let me see, here are some of the places I ate at:

  • Cool River Cafe
  • Budz Spuds (near work)
  • Astoria Coffee Shop (in Addison Circle)
  • Boun Giorno
  • Coffee Haus
  • McDonalds

I have decided to get my own place. I already found the place. I think I will move in there on July 1st.

I just realized that I spend $8.00 to go to work and come back. Ouch!

My vacation got pushed to August. Oh well!

Ralph is back in town.

I guess I will work on SCJD now.

So how did I do?

Weekend is almost over. How did I do on my goals?

First the good, I played with facebook api. I figured out a few key things. I setup repository to store code.

Then the bad, I didn’t run at all this week. I did rock climbed twice. I also used stepper but just for ten minutes.

Lastly, the ugly, I could not work on SCJD project. Only thing I did was setup repository.

So the goals for this week are:

  • to run at least once
  • setup contractor class for SCJD
  • display all your friends photos

Facebook app in 10 minutes

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.