Facebook logged user validation

Discussion in 'Programming' started by dramiditis, Mar 12, 2011.

  1. #1
    Hi, is there way to check if the user who is coming to my index page is logged in to facebook?
    from oficial documentation I can see that can be check if the user is "connected" or "not connected" to my app, but not if he is just logged in in his account.
     
    dramiditis, Mar 12, 2011 IP
  2. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    If a user is connected to your site you can use the JavaScript API FB.getLoginStatus or PHP API $facebook->getSession();
     
    crazyryan, Mar 12, 2011 IP
  3. dramiditis

    dramiditis Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    yes, I know that,but how can I check I the user is logged into fb without to be connected to my site? With "PHP API $facebook->getSession();" I got not connected in all scenarios except if the user is connected to my site.
     
    dramiditis, Mar 16, 2011 IP