{"action":"created","issue":{"url":"https://api.github.com/repos/wellyshen/react-cool-starter/issues/179","repository_url":"https://api.github.com/repos/wellyshen/react-cool-starter","labels_url":"https://api.github.com/repos/wellyshen/react-cool-starter/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/wellyshen/react-cool-starter/issues/179/comments","events_url":"https://api.github.com/repos/wellyshen/react-cool-starter/issues/179/events","html_url":"https://github.com/wellyshen/react-cool-starter/issues/179","id":322584770,"number":179,"title":"react-helmet not fetched by social sites if API_URL points to server.js to retrieve data","user":{"login":"danjonesdev","id":19705695,"avatar_url":"https://avatars1.githubusercontent.com/u/19705695?v=4","gravatar_id":"","url":"https://api.github.com/users/danjonesdev","html_url":"https://github.com/danjonesdev","followers_url":"https://api.github.com/users/danjonesdev/followers","following_url":"https://api.github.com/users/danjonesdev/following{/other_user}","gists_url":"https://api.github.com/users/danjonesdev/gists{/gist_id}","starred_url":"https://api.github.com/users/danjonesdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danjonesdev/subscriptions","organizations_url":"https://api.github.com/users/danjonesdev/orgs","repos_url":"https://api.github.com/users/danjonesdev/repos","events_url":"https://api.github.com/users/danjonesdev/events{/privacy}","received_events_url":"https://api.github.com/users/danjonesdev/received_events","type":"User","site_admin":false},"labels":[{"id":432827057,"url":"https://api.github.com/repos/wellyshen/react-cool-starter/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true},{"id":432827059,"url":"https://api.github.com/repos/wellyshen/react-cool-starter/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-13T11:11:08Z","updated_at":"2018-05-13T14:31:11Z","closed_at":null,"author_association":"NONE","body":"First of all. Amazing boilerplate, I'm really enjoying building my magazine with this.\r\n\r\nSo...\r\nCurrently UserCard action points to a jsonplaceholder to retrieve data.\r\n**Example A:** `const API_URL = 'https://jsonplaceholder.typicode.com/users';`\r\n\r\nIn a real world case it could be fetched from server.js:\r\n**Example B:**`const API_URL = '/api/article';`\r\n\r\n**Example A** & **Example B** both return the same data, the only difference is that **Example B** has to talk to the server instead of making a HTTP request.\r\n\r\nI added react-helmet to UserCard:\r\n```\r\nexport default ({ info }: Props) => (\r\n  <div className={styles.UserCard}>\r\n    <Helmet>\r\n      <meta property=\"og:title\" content={info.name} />\r\n    </Helmet>\r\n    <h4>User Card</h4>\r\n    <ul>\r\n      <li>Name: {info.name}</li>\r\n      <li>Phone: {info.phone}</li>\r\n      <li>Email: {info.email}</li>\r\n      <li>Website: {info.website}</li>\r\n    </ul>\r\n  </div>\r\n);\r\n```\r\n\r\nI am testing if the og:title is fetched by facebook's open graph crawler using: https://developers.facebook.com/tools/debug/sharing/\r\n\r\nIf data is fetched via **Example A**, the open graph crawler fetches the {info.name} correctly.\r\n\r\nIf data is fetched via **Example B**,  it does not fetch the {info.name}, it just returns the project's default meta data from \"config/default.js\"\r\n\r\nI'm unsure why this happens and would really love some advice with what the issue is here,\r\n\r\nI realise that this is quite a specific issue, but this is the last step in deploying my magazine via this boilerplate - I would really appreciate any help.\r\n\r\nThank you in advance.\r\n"},"comment":{"url":"https://api.github.com/repos/wellyshen/react-cool-starter/issues/comments/388631188","html_url":"https://github.com/wellyshen/react-cool-starter/issues/179#issuecomment-388631188","issue_url":"https://api.github.com/repos/wellyshen/react-cool-starter/issues/179","id":388631188,"user":{"login":"wellyshen","id":21308003,"avatar_url":"https://avatars1.githubusercontent.com/u/21308003?v=4","gravatar_id":"","url":"https://api.github.com/users/wellyshen","html_url":"https://github.com/wellyshen","followers_url":"https://api.github.com/users/wellyshen/followers","following_url":"https://api.github.com/users/wellyshen/following{/other_user}","gists_url":"https://api.github.com/users/wellyshen/gists{/gist_id}","starred_url":"https://api.github.com/users/wellyshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wellyshen/subscriptions","organizations_url":"https://api.github.com/users/wellyshen/orgs","repos_url":"https://api.github.com/users/wellyshen/repos","events_url":"https://api.github.com/users/wellyshen/events{/privacy}","received_events_url":"https://api.github.com/users/wellyshen/received_events","type":"User","site_admin":false},"created_at":"2018-05-13T14:31:11Z","updated_at":"2018-05-13T14:31:11Z","author_association":"OWNER","body":"@danjonesdev OK, I will spend time to take look."}}
{"actor":{"display_login":"wellyshen"}}