Well these facebook and google logins will work only in mobile . They do not work in browser .
you need to generate a debug apk file and then install this apk and then test it .
to generate apk file you need to install android studio and java sdk and then try generating the apk by running this command in project folder:
ionic cordova build android