diff --git a/e107_plugins/facebook/admin_config.php b/e107_plugins/facebook/admin_config.php
deleted file mode 100644
index 00abe1b34..000000000
--- a/e107_plugins/facebook/admin_config.php
+++ /dev/null
@@ -1,64 +0,0 @@
-runObservers(true);
-
-require_once(e_ADMIN."auth.php");
-
-/*
- * Send page content
- */
-e107::getAdminUI()->runPage();
-
-require_once(e_ADMIN."footer.php");
-
-/* OBSOLETE - see admin_shortcodes::sc_admin_menu()
-function admin_config_adminmenu()
-{
- //global $rp;
- //$rp->show_options();
- e107::getRegistry('admin/release_dispatcher')->renderMenu();
-}
-*/
-
-/* OBSOLETE - done within header.php
-function headerjs() // needed for the checkboxes - how can we remove the need to duplicate this code?
-{
- return e107::getAdminUI()->getHeader();
-}
-*/
-?>
\ No newline at end of file
diff --git a/e107_plugins/facebook/e_header.php b/e107_plugins/facebook/e_header.php
deleted file mode 100644
index a724d28d4..000000000
--- a/e107_plugins/facebook/e_header.php
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
Login with Facebook
-
-
- ');
-
-
- window.fbAsyncInit = function() {
- FB.init({
- appId : '{$fbPref['appId']}',
- status : true,
- cookie : true,
- xfbml : true,
- oauth : true
-
- });
- };
-
- $.ajax({
- type: "GET",
- url: document.location.protocol + '//connect.facebook.net/en_US/all.js' ,
-// success: callback,
- dataType: "script",
- cache: true
- });
-});
-EOT;
-
-
-$core = "";
-
-$perms = "email";
-
-$code = <<
Login with Facebook";
-
-
-// e107::js('inline',$code,'jquery',3);
-
-?>
\ No newline at end of file
diff --git a/e107_plugins/facebook/e_module.php b/e107_plugins/facebook/e_module.php
deleted file mode 100644
index 6dd3f5231..000000000
--- a/e107_plugins/facebook/e_module.php
+++ /dev/null
@@ -1,46 +0,0 @@
- top.location.href='" . $dialog_url . "'");
- }
-
- if($_REQUEST['state'] == $_SESSION['state']) {
- $token_url = "https://graph.facebook.com/oauth/access_token?"
- . "client_id=" . $app_id . "&redirect_uri=" . urlencode($my_url)
- . "&client_secret=" . $app_secret . "&code=" . $code;
-
- $response = file_get_contents($token_url);
- $params = null;
- parse_str($response, $params);
-
- $graph_url = "https://graph.facebook.com/me?access_token="
- . $params['access_token'];
-
- $user = json_decode(file_get_contents($graph_url));
- echo("Hello " . $user->name);
- }
- else {
- echo("The state does not match. You may be a victim of CSRF.");
- }
-
-}
-
-
-?>
\ No newline at end of file
diff --git a/e107_plugins/facebook/e_shortcode.php b/e107_plugins/facebook/e_shortcode.php
deleted file mode 100644
index 4ff85576f..000000000
--- a/e107_plugins/facebook/e_shortcode.php
+++ /dev/null
@@ -1,25 +0,0 @@
-Login with Facebook";
- }
-
-
- }
-
-}
-?>
\ No newline at end of file
diff --git a/e107_plugins/facebook/images/facebook_24.png b/e107_plugins/facebook/images/facebook_24.png
deleted file mode 100644
index 313b59422..000000000
Binary files a/e107_plugins/facebook/images/facebook_24.png and /dev/null differ
diff --git a/e107_plugins/facebook/images/facebook_48.png b/e107_plugins/facebook/images/facebook_48.png
deleted file mode 100644
index 663b15ccc..000000000
Binary files a/e107_plugins/facebook/images/facebook_48.png and /dev/null differ
diff --git a/e107_plugins/facebook/images/facebooklogin.gif b/e107_plugins/facebook/images/facebooklogin.gif
deleted file mode 100644
index b9fcd2df6..000000000
Binary files a/e107_plugins/facebook/images/facebooklogin.gif and /dev/null differ
diff --git a/e107_plugins/facebook/images/facebooklogo.gif b/e107_plugins/facebook/images/facebooklogo.gif
deleted file mode 100644
index 2afafd4e7..000000000
Binary files a/e107_plugins/facebook/images/facebooklogo.gif and /dev/null differ
diff --git a/e107_plugins/facebook/images/icon_16.png b/e107_plugins/facebook/images/icon_16.png
deleted file mode 100644
index 41301411c..000000000
Binary files a/e107_plugins/facebook/images/icon_16.png and /dev/null differ
diff --git a/e107_plugins/facebook/images/icon_32.png b/e107_plugins/facebook/images/icon_32.png
deleted file mode 100644
index 6e5efe0b3..000000000
Binary files a/e107_plugins/facebook/images/icon_32.png and /dev/null differ
diff --git a/e107_plugins/facebook/includes/admin.php b/e107_plugins/facebook/includes/admin.php
deleted file mode 100644
index 64cd8e963..000000000
--- a/e107_plugins/facebook/includes/admin.php
+++ /dev/null
@@ -1,69 +0,0 @@
- array(
- 'controller' => 'plugin_facebook_admin_ui',
- 'path' => null,
- 'ui' => 'plugin_facebook_admin_form_ui',
- 'uipath' => null
- )
- );
-
- protected $adminMenu = array(
- 'main/prefs' => array('caption'=> LAN_PREFS, 'perm' => '0'),
- );
-
- protected $adminMenuAliases = array(
- 'main/edit' => 'main/list'
- );
-
- /**
- * Navigation menu title
- * @var string
- */
- protected $menuTitle = 'facebook Menu';
-}
-
-class plugin_facebook_admin_ui extends e_admin_ui
-{
- // required
- protected $pluginTitle = "e107 facebook";
- protected $pluginName = 'facebook';
- // protected $table = "facebook";
-
-
- // optional, if $pluginName == 'core', core prefs will be used, else e107::getPluginConfig($pluginName);
- protected $prefs = array(
- 'appId' => array('title'=> 'Facebook AppId', 'type'=>'text', 'data' => 'string', 'validate' => true),
- 'appSecret' => array('title'=> 'Facebook AppSecret', 'type'=>'text', 'data' => 'string', 'validate' => true),
-
- // 'xfbml' => array('title'=> 'xfbml', 'type' => 'boolean', 'data' => 'int'),
- // 'oauth' => array('title'=> 'oAuth', 'type' => 'boolean', 'data' => 'int')
- );
-
- // optional
- public function init()
- {
- }
-}
-
-class plugin_facebook_admin_form_ui extends e_admin_form_ui
-{
-
-}
diff --git a/e107_plugins/facebook/plugin.xml b/e107_plugins/facebook/plugin.xml
deleted file mode 100644
index 06a5517ef..000000000
--- a/e107_plugins/facebook/plugin.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
- Facebook Integration for e107
- 2012 e107 Inc. Licensed under GPL (http://www.gnu.org/licenses/gpl.txt)
- Auth
-
- Facebook
-
-
-
- true
- true
- true
-
-
diff --git a/e107_plugins/facebook_old/e_meta.php b/e107_plugins/facebook_old/e_meta.php
deleted file mode 100644
index 74f59f336..000000000
--- a/e107_plugins/facebook_old/e_meta.php
+++ /dev/null
@@ -1,91 +0,0 @@
-';
-
- echo '';
-
- /**
- * if we are in comment.php page add "publish_to_facebook" checkbox to the form
- *
- */
-
- if (((e_PAGE == "comment.php") || (stripos(e_QUERY, 'extend') !== FALSE)) && ($fb->fb_uid))
- {
-
- echo '';
-
- onloadRegister('facebook_show_feed_checkbox();');
-
- /**
- * Simple Pure Javascript code , do same thing of prototype!
- *
- */
-
- /*
- echo '
- var commentbutton = document.getElementsByName("commentsubmit")[0];
-
- var checkbox = document.createElement("input");
- checkbox.type = "checkbox";
- checkbox.name = "publish_to_facebook";
- checkbox.defaultChecked = true;
-
- var txt = document.createTextNode("Publish Comment to Facebook");
-
- var img = document.createElement("img");
- img.setAttribute("src", "http://static.ak.fbcdn.net/images/icons/favicon.gif");
- img.setAttribute("alt", "");
- img.setAttribute("style", "padding-left:5px");
-
- commentbutton.parentNode.insertBefore(img,commentbutton.nextSibling);
- img.parentNode.insertBefore(checkbox,img.nextSibling);
- checkbox.parentNode.insertBefore(txt,checkbox.nextSibling);
- ';
-
- */
-
- /**
- * if we are in the signup page add the Facebook Connect Button
- *
- */
-
- }
- elseif (e_PAGE == "signup.php")
- {
- echo '';
- }
-
-}
-?>
\ No newline at end of file
diff --git a/e107_plugins/facebook_old/e_module.php b/e107_plugins/facebook_old/e_module.php
deleted file mode 100644
index 354744cef..000000000
--- a/e107_plugins/facebook_old/e_module.php
+++ /dev/null
@@ -1,143 +0,0 @@
-register('logout',array('e_facebook','fb_logout'),e_PLUGIN.'facebook/facebook_function.php');
- global $fb;
-
- $fb = e107::getSingleton('e_facebook',e_PLUGIN.'facebook/facebook_function.php');
- include_once (e_PLUGIN.'facebook/facebook_function.php');
-
- if (function_exists('prevent_cache_headers'))
- {
- prevent_cache_headers();
- }
-
- define('XMLNS', "xmlns:fb='http://www.facebook.com/2008/fbml'");
-
- global $pref;
-
- if ($pref['disable_emailcheck'] == 0) // Ensure "Make entering an email address optional" is setted to "ON";
- {
- $pref['disable_emailcheck'] = 1;
- save_prefs();
- }
-
- if (e_QUERY == 'facebook') // when clicked it inserts a new User in e107.
- {
- Fb_Connect_Me();
- }
-
- if (e_QUERY == 'login') // simple Re-Login after logged out from e107
- {
- $fb->fb_login(); // Fb_LogIn();
- }
-
- if (e_QUERY == 'logout') // simulate Facebook logOut when logged out from e107
- {
- // Fb_LogOut();
- }
-
- if (e_QUERY == 'facebook_switch')
- {
- Switch_Facebook_User();
- }
-
- if (USERID && (e_QUERY == 'facebook_link') && $fb->fb_uid) //
- {
- // $fb->Add_Facebook_Connect_User('', USERID);
- $fb->addFacebookUser();
- }
-
- if (e_QUERY == 'facebook_delete')
- {
-
- Delete_Duplicate_Facebook_User();
-
- }
-
-
- function theme_foot()
- {
- global $fb;
- /**
- * the init js needs to be at the bottom of the document, within the