{"action":"created","issue":{"url":"https://api.github.com/repos/nfl/react-helmet/issues/157","repository_url":"https://api.github.com/repos/nfl/react-helmet","labels_url":"https://api.github.com/repos/nfl/react-helmet/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/nfl/react-helmet/issues/157/comments","events_url":"https://api.github.com/repos/nfl/react-helmet/issues/157/events","html_url":"https://github.com/nfl/react-helmet/issues/157","id":166720742,"number":157,"title":"Unfurling on social sites doesn't display title ","user":{"login":"xiutxu","id":9836459,"avatar_url":"https://avatars.githubusercontent.com/u/9836459?v=3","gravatar_id":"","url":"https://api.github.com/users/xiutxu","html_url":"https://github.com/xiutxu","followers_url":"https://api.github.com/users/xiutxu/followers","following_url":"https://api.github.com/users/xiutxu/following{/other_user}","gists_url":"https://api.github.com/users/xiutxu/gists{/gist_id}","starred_url":"https://api.github.com/users/xiutxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiutxu/subscriptions","organizations_url":"https://api.github.com/users/xiutxu/orgs","repos_url":"https://api.github.com/users/xiutxu/repos","events_url":"https://api.github.com/users/xiutxu/events{/privacy}","received_events_url":"https://api.github.com/users/xiutxu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-21T01:57:13Z","updated_at":"2016-07-21T16:28:16Z","closed_at":null,"body":"If I add this to my jsx\r\n```\r\n          <Helmet\r\n            title=\"helmet:title\"\r\n            meta={[\r\n              {\"property\": \"og:title\", \"content\": \"og:title\" },\r\n              {\"property\": \"twitter:title\", \"content\": \"twitter:profile\" }\r\n            ]}\r\n          />\r\n```\r\nThe title of the page as shown in browser tab is \"helmet:title\". However, when I share it on a social channel such as Slack, Discord, or Twitter, the title isn't that. Has there been any work on making social tags play nicely with Helmet or am I missing something. If I am missing something, I would love to know! \r\n\r\nThank you for making this available for people like myself. This should end up saving me a little time and my code a little cleaner!"},"comment":{"url":"https://api.github.com/repos/nfl/react-helmet/issues/comments/234308296","html_url":"https://github.com/nfl/react-helmet/issues/157#issuecomment-234308296","issue_url":"https://api.github.com/repos/nfl/react-helmet/issues/157","id":234308296,"user":{"login":"xiutxu","id":9836459,"avatar_url":"https://avatars.githubusercontent.com/u/9836459?v=3","gravatar_id":"","url":"https://api.github.com/users/xiutxu","html_url":"https://github.com/xiutxu","followers_url":"https://api.github.com/users/xiutxu/followers","following_url":"https://api.github.com/users/xiutxu/following{/other_user}","gists_url":"https://api.github.com/users/xiutxu/gists{/gist_id}","starred_url":"https://api.github.com/users/xiutxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiutxu/subscriptions","organizations_url":"https://api.github.com/users/xiutxu/orgs","repos_url":"https://api.github.com/users/xiutxu/repos","events_url":"https://api.github.com/users/xiutxu/events{/privacy}","received_events_url":"https://api.github.com/users/xiutxu/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T16:28:16Z","updated_at":"2016-07-21T16:28:16Z","body":"HI @cwelch5 that was quick! I was using `og:title`, `twitter:profile`, and `helmet:title` just to see which would be rendered from the component. The title is dynamic based on the resource loaded from within a component. I am rendering server side, and I'm not entirely sure if this is the _best_ way to do things, but I got around it with this snippet for my express server:\r\n\r\n```\r\n      request(url)\r\n      .then(function(body) {\r\n          var resource = JSON.parse(body);\r\n          var html = ReactDOMServer.renderToStaticMarkup(htmlComponent({\r\n            markup: ReactDOMServer.renderToString(bodyElement),\r\n            preview: true,\r\n            image: resource.thumb,\r\n            title: resource.title\r\n          }));\r\n      ...\r\n```"}}
{"actor":{"display_login":"xiutxu"}}