{"action":"opened","issue":{"url":"https://api.github.com/repos/kennetpostigo/react-facebook-login-component/issues/2","repository_url":"https://api.github.com/repos/kennetpostigo/react-facebook-login-component","labels_url":"https://api.github.com/repos/kennetpostigo/react-facebook-login-component/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/kennetpostigo/react-facebook-login-component/issues/2/comments","events_url":"https://api.github.com/repos/kennetpostigo/react-facebook-login-component/issues/2/events","html_url":"https://github.com/kennetpostigo/react-facebook-login-component/issues/2","id":169897864,"number":2,"title":"Component doesn't render","user":{"login":"arkadiusz-wieczorek","id":5663277,"avatar_url":"https://avatars.githubusercontent.com/u/5663277?v=3","gravatar_id":"","url":"https://api.github.com/users/arkadiusz-wieczorek","html_url":"https://github.com/arkadiusz-wieczorek","followers_url":"https://api.github.com/users/arkadiusz-wieczorek/followers","following_url":"https://api.github.com/users/arkadiusz-wieczorek/following{/other_user}","gists_url":"https://api.github.com/users/arkadiusz-wieczorek/gists{/gist_id}","starred_url":"https://api.github.com/users/arkadiusz-wieczorek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkadiusz-wieczorek/subscriptions","organizations_url":"https://api.github.com/users/arkadiusz-wieczorek/orgs","repos_url":"https://api.github.com/users/arkadiusz-wieczorek/repos","events_url":"https://api.github.com/users/arkadiusz-wieczorek/events{/privacy}","received_events_url":"https://api.github.com/users/arkadiusz-wieczorek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-08T11:08:17Z","updated_at":"2016-08-08T11:08:17Z","closed_at":null,"body":"I've used your component by copy paste and it doesn't work, this is my error from web console:\r\n```bash\r\nWarning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of `FacebookButton`.bundle.js:2798:9\r\n\r\nError: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `FacebookButton`.bundle.js:2402:15\r\n```\r\n\r\nMy React version: `15.3.0`\r\n\r\n```js\r\nimport React from 'react';\r\nimport FacebookLogin from 'react-facebook-login-component';\r\nimport ee from '../modules/event-emitter.js';\r\n\r\nclass FacebookButton extends React.Component{\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props)\r\n\t\tthis.state = {\r\n\t\t\tappId: '141443656045564'\r\n\t\t}\r\n\t\tthis.responseFacebook = this.responseFacebook.bind(this)\r\n\t}\r\n\r\n\tresponseFacebook(response) {\r\n\t\tconsole.log(response)\r\n\t\tlet data = {\r\n\t\t\tresponse: response,\r\n\t\t\tsubmit: 'facebook',\r\n\t\t\tsignup_variant: 'facebook',\r\n\t\t\tlogged: true\r\n\t\t}\r\n\t\tee.emit('response', data)\r\n\t}\r\n\trender(){\r\n\t\treturn(\r\n\t\t\t<FacebookLogin socialId={this.state.appId}\r\n\t\t\t\tlanguage=\"en_US\"\r\n\t\t\t\tscope=\"public_profile,email\"\r\n\t\t\t\tresponseHandler={this.responseFacebook}\r\n\t\t\t\txfbml={true}\r\n\t\t\t\tversion=\"v2.5\"\r\n\t\t\t\tclass=\"facebook-login\"\r\n\t\t\t\tbuttonText=\"Login With Facebook\"/>\r\n\t\t)\r\n\t}\r\n```"}}
{"actor":{"display_login":"arkadiusz-wieczorek"}}