React not executing after login redirect

I integrated facebook and google social connections to my app.
Every setting looks ok, the app works.

But…

When I login successfully to google, it redirects back to homepage and the react does its work.
But when I login successfully to facebook, it redirects back to homepage and Javascript looks like is not executing, React is not rendering anything i just have the <div id="root" />. I need to manually refresh the page to get the react in work and see me logged in.

Why is the problem?