So I am trying to just login a user with facebook, then all I want to do is use their username as the username for my online section of the game. I am however very unfamiliar with the facebook API, and I just can’t seem to get the info I want.
All I need is to get the facebook username. I am able to get the full name of the user by adding a section into the facebook listener.
if ( commandProcessedByFB == GET\_USER\_INFO ) then username = response.name end
but I don’t want the users full name I just want their username instead, so I tried
if ( commandProcessedByFB == GET\_USER\_INFO ) then username = response.username end
but this returns a nil. I have attached my whole module below, its just an adaptation from the given facebook example.