I have a facebook chat application which has successfully populated a list of users online.
I want to be able to get the graph api userid of a specific user online using their jid.
Is this possible to do?
You should just be able to take the first part of the JID (the part before the @chat.facebook.com) and go to https://graph.facebook.com/FIRSTPART and you'll get the basic information (including user ID) for the user. For more on the Graph API, check out documentation.