{"action":"created","comment":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/comments/55620944","id":55620944,"diff_hunk":"@@ -0,0 +1,86 @@\n+<!---\n+Copyright 2016 The AMP HTML Authors. All Rights Reserved.\n+\n+Licensed under the Apache License, Version 2.0 (the \"License\");\n+you may not use this file except in compliance with the License.\n+You may obtain a copy of the License at\n+\n+      http://www.apache.org/licenses/LICENSE-2.0\n+\n+Unless required by applicable law or agreed to in writing, software\n+distributed under the License is distributed on an \"AS-IS\" BASIS,\n+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+See the License for the specific language governing permissions and\n+limitations under the License.\n+-->\n+\n+### <a name=\"amp-social-share\"></a> `amp-social-share`\n+\n+Displays a social share button.\n+\n+Example:\n+```html\n+<amp-social-share type=\"twitter\" width=\"60\" height=\"44\">\n+  <script type=\"application/json\">\n+    {\n+      \"text\": \"The AMP Project\",\n+      \"url\": \"https://www.ampproject.org/\",\n+      \"attribution\": \"amphtml\"\n+    }\n+  </script>\n+</amp-social-share>\n+```\n+\n+Example with customizations:\n+```html\n+<amp-social-share type=\"linkedin\" width=\"60\" height=\"44\">\n+  <script type=\"application/json\">\n+    {\n+      \"text\": \"The AMP Project\",\n+      \"url\": \"https://www.ampproject.org/\",\n+      \"attribution\": \"amphtml\"\n+    }\n+  </script>\n+  <div class=\"my-style\">\n+    <a id=\"customized-social-share\" class=\"custom\"><img src=\"http://example.com/image.jpg\"/></a>\n+  </div>\n+</amp-social-share>\n+```\n+\n+Example as attributes:\n+```html\n+<amp-social-share type=\"facebook\" width=\"60\" height=\"44\" data-text=\"Hello world\" data-url=\"https://example.com/\" data-attribution=\"AMPhtml\">\n+</amp-social-share>\n+```\n+\n+### Structure\n+\n+Required attributes are `type`, `width` and `height`. The inner `script` tag is also required and it must contain the JSON configuration for the share type ([more on that in the type section](#user-content-types)).\n+\n+Optionally, you can specify an `anchor` tag without a href set and the social share widget will populate the href for the correct location. This enables customization of the social share element.\n+\n+### Types\n+\n+The builtin supported types are configured in [AMP Social Share Config](v.0/amp-amp-social-share-config.js). Below are the possible types and their configuration options:\n+- twitter\n+  - url `required`","path":"extensions/amp-social-share/amp-social-share.md","position":87,"original_position":66,"commit_id":"39013122aca6894313af6b480f65e1cbbe900b24","original_commit_id":"3f648764277166492678f6af687509245906ed38","user":{"login":"cramforce","id":89679,"avatar_url":"https://avatars.githubusercontent.com/u/89679?v=3","gravatar_id":"","url":"https://api.github.com/users/cramforce","html_url":"https://github.com/cramforce","followers_url":"https://api.github.com/users/cramforce/followers","following_url":"https://api.github.com/users/cramforce/following{/other_user}","gists_url":"https://api.github.com/users/cramforce/gists{/gist_id}","starred_url":"https://api.github.com/users/cramforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramforce/subscriptions","organizations_url":"https://api.github.com/users/cramforce/orgs","repos_url":"https://api.github.com/users/cramforce/repos","events_url":"https://api.github.com/users/cramforce/events{/privacy}","received_events_url":"https://api.github.com/users/cramforce/received_events","type":"User","site_admin":false},"body":"Update doc?","created_at":"2016-03-10T01:18:14Z","updated_at":"2016-03-10T01:18:14Z","html_url":"https://github.com/ampproject/amphtml/pull/1856#discussion_r55620944","pull_request_url":"https://api.github.com/repos/ampproject/amphtml/pulls/1856","_links":{"self":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/comments/55620944"},"html":{"href":"https://github.com/ampproject/amphtml/pull/1856#discussion_r55620944"},"pull_request":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/1856"}}},"pull_request":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/1856","id":58696107,"html_url":"https://github.com/ampproject/amphtml/pull/1856","diff_url":"https://github.com/ampproject/amphtml/pull/1856.diff","patch_url":"https://github.com/ampproject/amphtml/pull/1856.patch","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/1856","number":1856,"state":"open","locked":false,"title":"AMP Social Share Extension","user":{"login":"paul-matthews","id":208304,"avatar_url":"https://avatars.githubusercontent.com/u/208304?v=3","gravatar_id":"","url":"https://api.github.com/users/paul-matthews","html_url":"https://github.com/paul-matthews","followers_url":"https://api.github.com/users/paul-matthews/followers","following_url":"https://api.github.com/users/paul-matthews/following{/other_user}","gists_url":"https://api.github.com/users/paul-matthews/gists{/gist_id}","starred_url":"https://api.github.com/users/paul-matthews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul-matthews/subscriptions","organizations_url":"https://api.github.com/users/paul-matthews/orgs","repos_url":"https://api.github.com/users/paul-matthews/repos","events_url":"https://api.github.com/users/paul-matthews/events{/privacy}","received_events_url":"https://api.github.com/users/paul-matthews/received_events","type":"User","site_admin":false},"body":"Created the AMP Social Share Extension as per Issue #1201 \r\n- One extension that represents one social share button\r\n- Supports:\r\n  - twitter\r\n  - facebook\r\n  - pinterest\r\n  - linkedin\r\n  - gplus\r\n  - email\r\n- Included Tests\r\n- Includes changes to the gulp build process to include postcss-import\r\n- Includes 3p licensed content from http://codepen.io/ruandre/pen/howFi","created_at":"2016-02-09T01:59:19Z","updated_at":"2016-03-10T01:18:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"690ffd404192c4c774ff04e6efa52fb60740f95f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ampproject/amphtml/pulls/1856/commits","review_comments_url":"https://api.github.com/repos/ampproject/amphtml/pulls/1856/comments","review_comment_url":"https://api.github.com/repos/ampproject/amphtml/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/1856/comments","statuses_url":"https://api.github.com/repos/ampproject/amphtml/statuses/39013122aca6894313af6b480f65e1cbbe900b24","head":{"label":"paul-matthews:amp-social-share","ref":"amp-social-share","sha":"39013122aca6894313af6b480f65e1cbbe900b24","user":{"login":"paul-matthews","id":208304,"avatar_url":"https://avatars.githubusercontent.com/u/208304?v=3","gravatar_id":"","url":"https://api.github.com/users/paul-matthews","html_url":"https://github.com/paul-matthews","followers_url":"https://api.github.com/users/paul-matthews/followers","following_url":"https://api.github.com/users/paul-matthews/following{/other_user}","gists_url":"https://api.github.com/users/paul-matthews/gists{/gist_id}","starred_url":"https://api.github.com/users/paul-matthews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul-matthews/subscriptions","organizations_url":"https://api.github.com/users/paul-matthews/orgs","repos_url":"https://api.github.com/users/paul-matthews/repos","events_url":"https://api.github.com/users/paul-matthews/events{/privacy}","received_events_url":"https://api.github.com/users/paul-matthews/received_events","type":"User","site_admin":false},"repo":{"id":47853378,"name":"amphtml","full_name":"paul-matthews/amphtml","owner":{"login":"paul-matthews","id":208304,"avatar_url":"https://avatars.githubusercontent.com/u/208304?v=3","gravatar_id":"","url":"https://api.github.com/users/paul-matthews","html_url":"https://github.com/paul-matthews","followers_url":"https://api.github.com/users/paul-matthews/followers","following_url":"https://api.github.com/users/paul-matthews/following{/other_user}","gists_url":"https://api.github.com/users/paul-matthews/gists{/gist_id}","starred_url":"https://api.github.com/users/paul-matthews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul-matthews/subscriptions","organizations_url":"https://api.github.com/users/paul-matthews/orgs","repos_url":"https://api.github.com/users/paul-matthews/repos","events_url":"https://api.github.com/users/paul-matthews/events{/privacy}","received_events_url":"https://api.github.com/users/paul-matthews/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paul-matthews/amphtml","description":"AMP HTML source code, samples, and documentation.  See below for more info.","fork":true,"url":"https://api.github.com/repos/paul-matthews/amphtml","forks_url":"https://api.github.com/repos/paul-matthews/amphtml/forks","keys_url":"https://api.github.com/repos/paul-matthews/amphtml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paul-matthews/amphtml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paul-matthews/amphtml/teams","hooks_url":"https://api.github.com/repos/paul-matthews/amphtml/hooks","issue_events_url":"https://api.github.com/repos/paul-matthews/amphtml/issues/events{/number}","events_url":"https://api.github.com/repos/paul-matthews/amphtml/events","assignees_url":"https://api.github.com/repos/paul-matthews/amphtml/assignees{/user}","branches_url":"https://api.github.com/repos/paul-matthews/amphtml/branches{/branch}","tags_url":"https://api.github.com/repos/paul-matthews/amphtml/tags","blobs_url":"https://api.github.com/repos/paul-matthews/amphtml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paul-matthews/amphtml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paul-matthews/amphtml/git/refs{/sha}","trees_url":"https://api.github.com/repos/paul-matthews/amphtml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paul-matthews/amphtml/statuses/{sha}","languages_url":"https://api.github.com/repos/paul-matthews/amphtml/languages","stargazers_url":"https://api.github.com/repos/paul-matthews/amphtml/stargazers","contributors_url":"https://api.github.com/repos/paul-matthews/amphtml/contributors","subscribers_url":"https://api.github.com/repos/paul-matthews/amphtml/subscribers","subscription_url":"https://api.github.com/repos/paul-matthews/amphtml/subscription","commits_url":"https://api.github.com/repos/paul-matthews/amphtml/commits{/sha}","git_commits_url":"https://api.github.com/repos/paul-matthews/amphtml/git/commits{/sha}","comments_url":"https://api.github.com/repos/paul-matthews/amphtml/comments{/number}","issue_comment_url":"https://api.github.com/repos/paul-matthews/amphtml/issues/comments{/number}","contents_url":"https://api.github.com/repos/paul-matthews/amphtml/contents/{+path}","compare_url":"https://api.github.com/repos/paul-matthews/amphtml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paul-matthews/amphtml/merges","archive_url":"https://api.github.com/repos/paul-matthews/amphtml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paul-matthews/amphtml/downloads","issues_url":"https://api.github.com/repos/paul-matthews/amphtml/issues{/number}","pulls_url":"https://api.github.com/repos/paul-matthews/amphtml/pulls{/number}","milestones_url":"https://api.github.com/repos/paul-matthews/amphtml/milestones{/number}","notifications_url":"https://api.github.com/repos/paul-matthews/amphtml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paul-matthews/amphtml/labels{/name}","releases_url":"https://api.github.com/repos/paul-matthews/amphtml/releases{/id}","deployments_url":"https://api.github.com/repos/paul-matthews/amphtml/deployments","created_at":"2015-12-11T22:06:36Z","updated_at":"2016-02-09T01:25:59Z","pushed_at":"2016-03-10T01:03:45Z","git_url":"git://github.com/paul-matthews/amphtml.git","ssh_url":"git@github.com:paul-matthews/amphtml.git","clone_url":"https://github.com/paul-matthews/amphtml.git","svn_url":"https://github.com/paul-matthews/amphtml","homepage":"https://ampproject.org","size":30892,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ampproject:master","ref":"master","sha":"82b265c38453a312174f5b71c71ca3313878117c","user":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars.githubusercontent.com/u/14114390?v=3","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"repo":{"id":41766002,"name":"amphtml","full_name":"ampproject/amphtml","owner":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars.githubusercontent.com/u/14114390?v=3","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ampproject/amphtml","description":"AMP HTML source code, samples, and documentation.  See below for more info.","fork":false,"url":"https://api.github.com/repos/ampproject/amphtml","forks_url":"https://api.github.com/repos/ampproject/amphtml/forks","keys_url":"https://api.github.com/repos/ampproject/amphtml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ampproject/amphtml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ampproject/amphtml/teams","hooks_url":"https://api.github.com/repos/ampproject/amphtml/hooks","issue_events_url":"https://api.github.com/repos/ampproject/amphtml/issues/events{/number}","events_url":"https://api.github.com/repos/ampproject/amphtml/events","assignees_url":"https://api.github.com/repos/ampproject/amphtml/assignees{/user}","branches_url":"https://api.github.com/repos/ampproject/amphtml/branches{/branch}","tags_url":"https://api.github.com/repos/ampproject/amphtml/tags","blobs_url":"https://api.github.com/repos/ampproject/amphtml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ampproject/amphtml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ampproject/amphtml/git/refs{/sha}","trees_url":"https://api.github.com/repos/ampproject/amphtml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ampproject/amphtml/statuses/{sha}","languages_url":"https://api.github.com/repos/ampproject/amphtml/languages","stargazers_url":"https://api.github.com/repos/ampproject/amphtml/stargazers","contributors_url":"https://api.github.com/repos/ampproject/amphtml/contributors","subscribers_url":"https://api.github.com/repos/ampproject/amphtml/subscribers","subscription_url":"https://api.github.com/repos/ampproject/amphtml/subscription","commits_url":"https://api.github.com/repos/ampproject/amphtml/commits{/sha}","git_commits_url":"https://api.github.com/repos/ampproject/amphtml/git/commits{/sha}","comments_url":"https://api.github.com/repos/ampproject/amphtml/comments{/number}","issue_comment_url":"https://api.github.com/repos/ampproject/amphtml/issues/comments{/number}","contents_url":"https://api.github.com/repos/ampproject/amphtml/contents/{+path}","compare_url":"https://api.github.com/repos/ampproject/amphtml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ampproject/amphtml/merges","archive_url":"https://api.github.com/repos/ampproject/amphtml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ampproject/amphtml/downloads","issues_url":"https://api.github.com/repos/ampproject/amphtml/issues{/number}","pulls_url":"https://api.github.com/repos/ampproject/amphtml/pulls{/number}","milestones_url":"https://api.github.com/repos/ampproject/amphtml/milestones{/number}","notifications_url":"https://api.github.com/repos/ampproject/amphtml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ampproject/amphtml/labels{/name}","releases_url":"https://api.github.com/repos/ampproject/amphtml/releases{/id}","deployments_url":"https://api.github.com/repos/ampproject/amphtml/deployments","created_at":"2015-09-01T22:10:53Z","updated_at":"2016-03-09T20:04:39Z","pushed_at":"2016-03-10T01:03:46Z","git_url":"git://github.com/ampproject/amphtml.git","ssh_url":"git@github.com:ampproject/amphtml.git","clone_url":"https://github.com/ampproject/amphtml.git","svn_url":"https://github.com/ampproject/amphtml","homepage":"https://ampproject.org","size":36301,"stargazers_count":6700,"watchers_count":6700,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":811,"mirror_url":null,"open_issues_count":354,"forks":811,"open_issues":354,"watchers":6700,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/1856"},"html":{"href":"https://github.com/ampproject/amphtml/pull/1856"},"issue":{"href":"https://api.github.com/repos/ampproject/amphtml/issues/1856"},"comments":{"href":"https://api.github.com/repos/ampproject/amphtml/issues/1856/comments"},"review_comments":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/1856/comments"},"review_comment":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/1856/commits"},"statuses":{"href":"https://api.github.com/repos/ampproject/amphtml/statuses/39013122aca6894313af6b480f65e1cbbe900b24"}}}}