500 internal server error

After applying the settings for facebook i have to grant extended permissions and after that i just get the error and get kicked off... Of when skipping the permissions and save some other settings its the same problem.. Any idea how to fix this?