Login with Facebook in /wp-login does not work

When logging in via /wp-login, the ajax is reloading forever and does not automatically take to the home page. It shows the loading icon. Although when you refresh the page, you are directed to the home page and logged in.