Integrate login with facebook via javascript sdk.