How to configure accounts-facebook & google using godaddy domain and ec2 hosting?

Hi everyone,
I have recently made an web app and when I tested out the log in with facebook and google package on localhost and meteor.com, they both works fine.
However, when I use my hosting site, ec2 and my domain from godaddy, as the callback url, it doesn’t work anymore. http://ec2-xx-xxx-xxx-xx.ap-southeast-2.compute.amazonaws.com seems to work, but the domain name still doesn’t work.
Therefore can anymore please help me to resolve this problem?

mup.json:
“env”: {
“PORT”:80,
// “METEOR_ENV”: “production”,
“ROOT_URL”: “http://ec2-XX-XXX-XXX-XX.ap-southeast-2.compute.amazonaws.com

},

and in Ec2 ,have opened port 80