anyone know of a way to do this?!

Discussion in 'PHP' started by jfontestad, Aug 7, 2008.

  1. #1
    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.!
     
    jfontestad, Aug 7, 2008 IP
  2. IncomeCoach

    IncomeCoach Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't know of one. Have you tried rentacoder.com?
     
    IncomeCoach, Aug 7, 2008 IP
  3. kappaknight

    kappaknight Peon

    Messages:
    160
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Their chat tool could do it so it's potentially in their API. Just gotta dig a little deeper.
     
    kappaknight, Aug 7, 2008 IP
  4. CarcaBot

    CarcaBot Active Member

    Messages:
    389
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #4
    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
     
    CarcaBot, Aug 7, 2008 IP
  5. jfontestad

    jfontestad Well-Known Member

    Messages:
    1,236
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    148
    #5
    i figured that, was just wondering if there was something already out there...
     
    jfontestad, Aug 7, 2008 IP
  6. luden

    luden Active Member

    Messages:
    155
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    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.
     
    luden, Aug 8, 2008 IP
  7. jfontestad

    jfontestad Well-Known Member

    Messages:
    1,236
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    148
    #7
    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.
     
    jfontestad, Aug 8, 2008 IP
  8. DuValEnterprises

    DuValEnterprises Peon

    Messages:
    865
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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
     
    DuValEnterprises, Aug 8, 2008 IP
  9. doridori

    doridori Banned

    Messages:
    473
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9

    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.
     
    doridori, Aug 8, 2008 IP
  10. jfontestad

    jfontestad Well-Known Member

    Messages:
    1,236
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    148
    #10
    jfontestad, Aug 9, 2008 IP