]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/FacebookSSO/lib/facebookclient.php
Add an action to handle deauthorization callbacks from Facebook
[quix0rs-gnu-social.git] / plugins / FacebookSSO / lib / facebookclient.php
index 6753243ed0878dd683b118ab0c0116c54cb2a7d2..cf00b55e3a5714fd0aefb566ee5e0e99754d4966 100644 (file)
@@ -673,25 +673,29 @@ class Facebookclient
      */
     function mailFacebookDisconnect()
     {
-        $profile = $user->getProfile();
+        $profile = $this->user->getProfile();
 
         $siteName = common_config('site', 'name');
 
-        common_switch_locale($user->language);
+        common_switch_locale($this->user->language);
 
-        $subject = sprintf(
-            _m('Your Facebook connection has been removed'),
-            $siteName
-        );
+        $subject = _m('Your Facebook connection has been removed');
 
         $msg = <<<BODY
-Hi, %1$s. We're sorry to inform you we are unable to publish your notice to
-Facebook, and have removed the connection between your %2$s account and Facebook.
+Hi %1$s,
+
+We're sorry to inform you we are unable to publish your notice to
+Facebook, and have removed the connection between your %2$s account and
+Facebook.
+
+This may have happened because you have removed permission for %2$s
+to post on your behalf, or perhaps you have deactivated your Facebook
+account. You can reconnect your %s account to Facebook at any time by
+logging in with Facebook again.
+
+Sincerely,
 
-This may have happened because you have removed permission for %2$s to post on
-your behalf, or perhaps you have deactivated your Facebook account. You can
-reconnect your %s account to Facebook at any time by logging in with Facebook
-again.
+%2$s
 BODY;
         $body = sprintf(
             _m($msg),