Facebook Show Which Of Your Friends Is Currently Logged In

I am trying to implement 2 player game, where the user finds an opponent from their Facebook friends list. I want to know is there a way to show which friends are currently playing the game and logged in with Facebook?

I don’t know how to determine if they are logged in, but you can pass parameters to a request to get your friends information and get a value called “installed” which tells you if they  have your app installed.

       local params = {         fields = "name,username,first\_name,last\_name,picture,installed,email"     }     facebook.request("me/friends", "GET", params)

I don’t know how to determine if they are logged in, but you can pass parameters to a request to get your friends information and get a value called “installed” which tells you if they  have your app installed.

       local params = {         fields = "name,username,first\_name,last\_name,picture,installed,email"     }     facebook.request("me/friends", "GET", params)