{"action":"created","issue":{"url":"https://api.github.com/repos/openstreetmap/openstreetmap-website/issues/1361","repository_url":"https://api.github.com/repos/openstreetmap/openstreetmap-website","labels_url":"https://api.github.com/repos/openstreetmap/openstreetmap-website/issues/1361/labels{/name}","comments_url":"https://api.github.com/repos/openstreetmap/openstreetmap-website/issues/1361/comments","events_url":"https://api.github.com/repos/openstreetmap/openstreetmap-website/issues/1361/events","html_url":"https://github.com/openstreetmap/openstreetmap-website/issues/1361","id":188008491,"number":1361,"title":"Diary posts should populate Open Graph tags for social sharing","user":{"login":"bhousel","id":38784,"avatar_url":"https://avatars.githubusercontent.com/u/38784?v=3","gravatar_id":"","url":"https://api.github.com/users/bhousel","html_url":"https://github.com/bhousel","followers_url":"https://api.github.com/users/bhousel/followers","following_url":"https://api.github.com/users/bhousel/following{/other_user}","gists_url":"https://api.github.com/users/bhousel/gists{/gist_id}","starred_url":"https://api.github.com/users/bhousel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhousel/subscriptions","organizations_url":"https://api.github.com/users/bhousel/orgs","repos_url":"https://api.github.com/users/bhousel/repos","events_url":"https://api.github.com/users/bhousel/events{/privacy}","received_events_url":"https://api.github.com/users/bhousel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-08T14:39:41Z","updated_at":"2016-11-08T16:19:09Z","closed_at":null,"body":"It makes me sad when I try to share a diary post on a social site like Facebook or Twitter, and the site can't automatically fetch the title and highlight image because we don't set the necessary Open Graph tags.\r\n\r\nOpen Graph debug tool here:\r\nhttps://developers.facebook.com/tools/debug/sharing/\r\n\r\nFor example, if I try to share this post:\r\nhttps://www.openstreetmap.org/user/PlaneMad/diary/39846\r\n\r\nI will end up with a generic share item with no image, and the description just talks about OpenStreetMap, not a description of the post that I am trying to share:\r\n\r\n<img width=\"600\" alt=\"screenshot 2016-11-08 09 35 28\" src=\"https://cloud.githubusercontent.com/assets/38784/20103128/b7dfc646-a596-11e6-84cd-565d334a5dcd.png\">\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openstreetmap/openstreetmap-website/issues/comments/259182354","html_url":"https://github.com/openstreetmap/openstreetmap-website/issues/1361#issuecomment-259182354","issue_url":"https://api.github.com/repos/openstreetmap/openstreetmap-website/issues/1361","id":259182354,"user":{"login":"bhousel","id":38784,"avatar_url":"https://avatars.githubusercontent.com/u/38784?v=3","gravatar_id":"","url":"https://api.github.com/users/bhousel","html_url":"https://github.com/bhousel","followers_url":"https://api.github.com/users/bhousel/followers","following_url":"https://api.github.com/users/bhousel/following{/other_user}","gists_url":"https://api.github.com/users/bhousel/gists{/gist_id}","starred_url":"https://api.github.com/users/bhousel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhousel/subscriptions","organizations_url":"https://api.github.com/users/bhousel/orgs","repos_url":"https://api.github.com/users/bhousel/repos","events_url":"https://api.github.com/users/bhousel/events{/privacy}","received_events_url":"https://api.github.com/users/bhousel/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T16:19:09Z","updated_at":"2016-11-08T16:19:09Z","body":"I'm considering #739 as sharing for map links and #1361 as sharing for diary links. \r\n\r\n> We seem to be passing the diary entry title, and I'm not sure how we could pass an image - even if we could find the images (which would be hard) how would we choose which one if there was more than one?\r\n\r\nMaybe just the first image?  It's better than nothing.   \r\n\r\nYes, I agree this is a hard problem.  Honestly I don't really think we should have diaries in OpenStreetMap.  We should instead focus our limited developer attention on making the best map possible.   But if we _are_ going to embed a barebones blogging engine, we need to at least make the content socially shareable.\r\n\r\nHow would you feel about splitting the diary code out into a separate repository?\r\n"}}
{"actor":{"display_login":"bhousel"}}