If you register the facebook application and use the Heroku service, it will create an example application for you, since an infinite loop has arisen from a few days ago and you cannot interact with your application. I tried replacing window.location = window.location; with window.top.location.href = "https://apps.facebook.com/xxxxxx":
FB.Event.subscribe('auth.login', function(response) {
window.top.location.href = "https://apps.facebook.com/YOUR_APPs_NAMESPACE"
});
Fortunately, he solved the problem. Just sharing here.
source
share