To log in with Facebook on a modded APK, you need to uninstall the Facebook app first. As for logging in with Google, you need to follow a few steps using Lucky Patcher. There’s a post about it on the forum, so I recommend searching there.
I’ve already provided the mod, so the rest is up to you guys. I’m happy to point you in the right direction, but I can’t walk you through every single step.