was wondering if anyone knew or could help me out with a way to do the following: input someones facebook profile id and let the script tell you whether or not they are online. i was just wondering if there was a tool or how hard it would be to make a tool that could possibly do this. thanks.!
since you have posted in this section imply that's a tool to be in php ... there is a way using http://php.net/fsockopen but are already made scripts which do this. /CarcaBot
i think you can do it using php sessions variables. if the session exists then the visitor is online because the visitor didn't logout and close its session.
i'm thinking i'd just have to figure out the way that facebook checks to see if the user is online or not, so it may not be possible at all unless it would be an app that the person has installed for their profile. i'm just trying to figure out a way to find out if someone is online like maybe if facebook would pass a variable along something like myspace or AIM that you can pass a query and t would tell you if the person is online or not.
there are two ways a person can be online on Facebook currently.... 1. when they are logged in and actively browsing, or for an hour after that. 2. When they have set their IM status to 'online'. Don't confuse the two. You can use sessions to see if they are logged in or have been within the past hour. You currently cannot see their online IM status via the api, but that will likely change sometime soon
i might be reading it wrong but seems like you want the script to goto check on fb whether person is online or not. you could use cURL library, have them login, and scrape the results...will not be easy because fb uses javascript in some places. or you can do just a normal fetch, but if you do this several thousand times a day, you will get your ass banned. as for anything more complicated craping forget cURL....WWW::Mechanize ftw. isn't there a facebook api? maybe look into that.
i'm looking for something somewhat like this: http://www.buddycheckscript.com/index.php but for facebookand instead of putting a screenname it would be lets say...there profile id #.