{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/2442","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/2442/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/2442/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/2442/events","html_url":"https://github.com/ampproject/amphtml/issues/2442","id":138514216,"number":2442,"title":"Intent to implement: Viafoura embed","user":{"login":"dougalg","id":210433,"avatar_url":"https://avatars.githubusercontent.com/u/210433?v=3","gravatar_id":"","url":"https://api.github.com/users/dougalg","html_url":"https://github.com/dougalg","followers_url":"https://api.github.com/users/dougalg/followers","following_url":"https://api.github.com/users/dougalg/following{/other_user}","gists_url":"https://api.github.com/users/dougalg/gists{/gist_id}","starred_url":"https://api.github.com/users/dougalg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougalg/subscriptions","organizations_url":"https://api.github.com/users/dougalg/orgs","repos_url":"https://api.github.com/users/dougalg/repos","events_url":"https://api.github.com/users/dougalg/events{/privacy}","received_events_url":"https://api.github.com/users/dougalg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ampproject/amphtml/labels/3P","name":"3P","color":"006b75"},{"url":"https://api.github.com/repos/ampproject/amphtml/labels/INTENT%20TO%20IMPLEMENT","name":"INTENT TO IMPLEMENT","color":"fbca04"},{"url":"https://api.github.com/repos/ampproject/amphtml/labels/Related%20to:%20Content","name":"Related to: Content","color":"d4c5f9"},{"url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Feature","name":"Type: Feature","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-04T16:14:30Z","updated_at":"2016-03-21T14:24:37Z","closed_at":null,"body":"The proposed component would embed Viafoura's social widgets on a page inside an iframe. The widget would support all sizing options, and an `embed-size` postMessage event to handle resizing when necessary.\r\n\r\nTribune Publishing among other media clients of ours are currently developing an AMP implementation and would like to be able to include Viafoura widgets, such as our commenting widget, on their pages.\r\n\r\nThe primary data-attribute would be `data-widget` to specify the widget to implement. \r\n\r\nSample code to load the Viafoura commenting widget in amp:\r\n\r\n```\r\n<amp-viafoura\r\n    layout=\"responsive\"\r\n    resizable\r\n    data-widget=\"comments\"\r\n    height=\"600\"\r\n    width=\"500\">\r\n</amp-viafoura>\r\n```\r\n\r\nThe widget would detect the domain, page URL, title, description, and image, and send that through the iframe along with any additional widget-specific parameters in order to load the correct commenting widget for the page.\r\n\r\nHere is what our proposed implementation might look like:\r\nhttps://github.com/Tckool/amphtml/blob/amp-viafoura/extensions/amp-viafoura/amp-viafoura.md"},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/199311357","html_url":"https://github.com/ampproject/amphtml/issues/2442#issuecomment-199311357","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/2442","id":199311357,"user":{"login":"dougalg","id":210433,"avatar_url":"https://avatars.githubusercontent.com/u/210433?v=3","gravatar_id":"","url":"https://api.github.com/users/dougalg","html_url":"https://github.com/dougalg","followers_url":"https://api.github.com/users/dougalg/followers","following_url":"https://api.github.com/users/dougalg/following{/other_user}","gists_url":"https://api.github.com/users/dougalg/gists{/gist_id}","starred_url":"https://api.github.com/users/dougalg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougalg/subscriptions","organizations_url":"https://api.github.com/users/dougalg/orgs","repos_url":"https://api.github.com/users/dougalg/repos","events_url":"https://api.github.com/users/dougalg/events{/privacy}","received_events_url":"https://api.github.com/users/dougalg/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T14:24:37Z","updated_at":"2016-03-21T14:24:37Z","body":"I've submitted a pull request of our current working version so that you can take a closer look at what our vision is for this component, and provide more concrete feedback based on it."}}