diff --git a/e107_plugins/facebook_old/e_meta.php b/e107_plugins/facebook_old/e_meta.php
new file mode 100644
index 000000000..74f59f336
--- /dev/null
+++ b/e107_plugins/facebook_old/e_meta.php
@@ -0,0 +1,91 @@
+';
+
+ 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
new file mode 100644
index 000000000..354744cef
--- /dev/null
+++ b/e107_plugins/facebook_old/e_module.php
@@ -0,0 +1,143 @@
+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