Remove `user_interests` permission from FacebookAuthAction
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 30 Jun 2015 18:32:35 +0000 (20:32 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 30 Jun 2015 18:32:35 +0000 (20:32 +0200)
It wasn’t used anyway and was deprecated / removed by Facebook.

wcfsetup/install/files/lib/action/FacebookAuthAction.class.php

index d26e00ba6911b59d25a20508f9e5b2e167c80f21..8b4ee30325283082fc9310b302503a0b5598d2e7 100644 (file)
@@ -134,7 +134,7 @@ class FacebookAuthAction extends AbstractAction {
                // start auth by redirecting to facebook
                $token = StringUtil::getRandomID();
                WCF::getSession()->register('__facebookInit', $token);
-               HeaderUtil::redirect("https://www.facebook.com/dialog/oauth?client_id=".StringUtil::trim(FACEBOOK_PUBLIC_KEY). "&redirect_uri=".rawurlencode($callbackURL)."&state=".$token."&scope=email,user_about_me,user_birthday,user_interests,user_location,user_website");
+               HeaderUtil::redirect("https://www.facebook.com/dialog/oauth?client_id=".StringUtil::trim(FACEBOOK_PUBLIC_KEY). "&redirect_uri=".rawurlencode($callbackURL)."&state=".$token."&scope=email,user_about_me,user_birthday,user_location,user_website");
                $this->executed();
                exit;
        }