Facebook login API javascript for mobile apps

I want to intergrate facebook login for my app using Javascript. I have been successful following this youtube guide and I can login through the browser. However, on my android emulator, there was an error and nothing happened when I pressed on the button. On eclipse, this error was returned: "Uncaught reference error: FB is not defined at .../index.html" I am thinking that the probably is caused from the facebook developer side, probably the Valid OAuth redirect URIs or the domain names.

Question:

What should my settings on facebook developer be should I be using if I want to run this function on an app.