diff --git a/oauthconnector.admin.inc b/oauthconnector.admin.inc
index a45079d..0eb271a 100644
--- a/oauthconnector.admin.inc
+++ b/oauthconnector.admin.inc
@@ -803,6 +803,46 @@ function oauthconnector_presets() {
     'format' => 'json',
   );
 
+  $github = new stdClass();
+  $github->name = '';
+  $github->title = 'GitHub';
+  $github->url = 'https://api.github.com';
+  $github->consumer_advanced = array(
+    'oauth2' => 1,
+    'signature method' => 'HMAC-SHA1',
+    'authentication realm' => '',
+    'request token endpoint' => '/oauth/request_token',
+    'authorization scope' => 'public_repo',
+    'authorization endpoint' => 'https://github.com/login/oauth/authorize',
+    'access token endpoint' => 'https://github.com/login/oauth/access_token',
+  );
+  $github->mapping = array(
+    'fields' => array(
+      'uid' => array(
+        'resource' => 'https://api.github.com/user',
+        'method post' => 0,
+        'field' => 'id',
+        'querypath' => FALSE,
+        'sync_with_field' => '',
+      ),
+      'name' => array(
+        'resource' => 'https://api.github.com/user',
+        'method post' => 0,
+        'field' => 'name',
+        'querypath' => FALSE,
+        'sync_with_field' => '',
+      ),
+      'avatar' => array(
+        'resource' => 'https://api.github.com/user',
+        'method post' => 0,
+        'field' => 'avatar_url',
+        'querypath' => FALSE,
+        'sync_with_field' => 'picture',
+      ),
+    ),
+    'format' => 'json',
+  );
+
   $presets = array(
     'twitter' => array (
       'data' => $twitter,
@@ -824,6 +864,10 @@ function oauthconnector_presets() {
       'data' => $flickr,
       'name' => 'Flickr',
     ),
+    'github' => array(
+      'data' => $github,
+      'name' => 'GitHub',
+    ),
   );
   drupal_alter('oauthconnector_presets', $presets);
   return $presets;
