Tag Archives: Facebook
Random Funny Technology Videos
Maintaining a session in a session-less environment
Confused? I know I was at first, but let me explain. First, why would there be a session-less environment? I thought this was a HUGE plus to server-side development languages over basic HTML that is session-less? Well, you would be right in that sense; however, as I mentioned in a recent blog that I’ve switched careers and I am currently doing server-side game development for large Facebook Virtual Worlds. The client/server relationship in these games are completely session-less. Each time the client performs an action, the server doesn’t “know” who they are because it’s not a consistent relationship like a browser and a web server.
Don’t worry, there is a simple solution to this problem, let’s explore it now. Read more »
Someone at work tick you off?
I don’t know about you, but there are many times during a work week where someone ticks me off. It could be something small or something major.
I’ve always wondered what I could do about this, so I finally did something.
I created a Facebook application called Head Slap! It let’s you type in your friend’s name on Facebook and give them a slap on the head. Enter a personalized message letting them know why they deserve it!
Facebook Development – Quick and Easy Dialogs
At my work, whenever we have a link to delete records, we always have a simple Javascript confirm dialog pop-up. The confirm dialog just does the standard, “Are you sure you wish to delete this record?” with an OK and Cancel button. If the user clicks cancel, the record is not deleted, if they click OK, the record will be deleted.
If you’ve done some Facebook development, you will notice quickly that the alert() and confirm() functions do not work. I’ve found this slightly annoying, so I’ve written a very simple Javascript function that let’s me use the nifty dialogs that Facebook provides us. Read more »
Facebook Development and $_SERVER['HTTP_REFERER']
If you are new to creating Facebook applications or even if you’re not. When you go to use $_SERVER['HTTP_REFERER'] you might be in for a surprise when this _SERVER variable does not exist!
Just recently I encountered this problem, when I thought about it for a few seconds it made sense why the variable wasn’t there. Your server cannot properly track the history because every page request in your Facebook application occurs through a request from a Facebook server, not the user them self. Read more »