July 3, 2007
Yesterday, I took on the challenge of developing an application for Facebook. The application I created is called ‘Wii Friend Number’, and it allows you to easily share your Wii console number with your friends.
Doing so was a new learning experience as I treaded into the mysterious waters of manually creating a mySQL database for my application and having the code I created in PHP interface with it. The beginning was a daunting task, but after a full day’s work, I managed to create an application which did the following:
- Insert a new entry into the database which would be unique to the Facebook user’s id
- Pull up the entry in the database that the user created
- Delete an entry from the database that the user created
I don’t think I will be releasing the app to the public yet as there’s still some extra functionality I’d like to add into it such as searching up friends who’ve also installed the application and entered their console numbers.
If anyone has features they’d like to see in this, feel free to suggest it!

I just added the app – looks neat in my profile.
I don’t know if it’s a “race condition” hit because no-one in my friends list has the application added, but when I click on the link to see console numbers of friends I get:
Wii Friend Number
Here you will find the console numbers of your friends here on Facebook that you can add to your Wii Address Book.
Warning: Invalid argument supplied for foreach() in /home/content/s/e/n/senmus35/html/booksammy/sandbox/others.php on line 78
Thanks for the bug notification Chisel. After reading your comment I checked out my code and it looks like I didn’t consider the scenario where no other friends added the app yet, which looks like why it was getting that error. Should be fixed now, I think.