Not sure about Google, but for Facebook I would recommend: do not use SignWithPopup in firebase; set Embedded Browser OAuth Login to ...
อ่านต่อ