Best way to display online and active friends in a Facebook Game

I have read that it is not possible for Facebook JavaScript SDK to determine online and active (friends who are currently playing the game). Anyone who can give me suggestions to do this in the best way?

I also thought if it will be effective if I will save the users ID's to my MySQL database whenever they visit my game, but will it be a good choice considering that the volume of Facebook users will be increasing every single time? Also, deleting each entry will be a problem.

I don't have much knowledge in Node but will this help me? I have also thought if it will be possible to save users' ID's to my server who are actively using the application.

Please give me suggestions to achieve this. Thank you.