Some code related to FB login on phonegapwqa