Hello,
Is allow_url_fopen directive enabled in the server configuration? You can install PHP info plugin to check. If this is disabled then enabled it and try to login using FB again.
Regards