[facebook] Modernize
[facebook] Fix login detection (#2505)