{"action":"created","issue":{"url":"https://api.github.com/repos/colinta/motion-firebase/issues/11","labels_url":"https://api.github.com/repos/colinta/motion-firebase/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/colinta/motion-firebase/issues/11/comments","events_url":"https://api.github.com/repos/colinta/motion-firebase/issues/11/events","html_url":"https://github.com/colinta/motion-firebase/issues/11","id":55396849,"number":11,"title":"Facebook connect doesn't work - uninitialized constant Firebase::FBSession (NameError)","user":{"login":"holgersindbaek","id":698979,"avatar_url":"https://avatars.githubusercontent.com/u/698979?v=3","gravatar_id":"","url":"https://api.github.com/users/holgersindbaek","html_url":"https://github.com/holgersindbaek","followers_url":"https://api.github.com/users/holgersindbaek/followers","following_url":"https://api.github.com/users/holgersindbaek/following{/other_user}","gists_url":"https://api.github.com/users/holgersindbaek/gists{/gist_id}","starred_url":"https://api.github.com/users/holgersindbaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holgersindbaek/subscriptions","organizations_url":"https://api.github.com/users/holgersindbaek/orgs","repos_url":"https://api.github.com/users/holgersindbaek/repos","events_url":"https://api.github.com/users/holgersindbaek/events{/privacy}","received_events_url":"https://api.github.com/users/holgersindbaek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-25T04:29:47Z","updated_at":"2015-01-25T15:46:59Z","closed_at":null,"body":"I'm trying to connect with Facebook, but I keep getting this error:\r\n\r\n    2015-01-24 23:27:10.775 Slang[10964:1231976] firebase_facebook_helper.rb:12:in `open_facebook_session:': uninitialized constant Firebase::FBSession (NameError)\r\n      from connect_view.rb:28:in `connect_button_tapped'\r\n      from connect_view.rb:17:in `block in init'\r\n      from uicontrol.rb:91:in `call:event:'\r\n    2015-01-24 23:27:10.783 Slang[10964:1231976] *** Terminating app due to uncaught exception 'NameError', reason: 'firebase_facebook_helper.rb:12:in `open_facebook_session:': uninitialized constant Firebase::FBSession (NameError)\r\n      from connect_view.rb:28:in `connect_button_tapped'\r\n      from connect_view.rb:17:in `block in init'\r\n      from uicontrol.rb:91:in `call:event:'\r\n\r\nThis is my code:\r\n\r\n      $firebase = Firebase.new(\"https://slangtest.firebaseio.com\")\r\n      $firebase.open_facebook_session(permissions: ['public_profile'], allow_login_ui: true) do |error, auth_data|\r\n        ap \"error: #{error}\"\r\n        ap \"auth_data: #{auth_data}\"\r\n      end\r\n\r\nAm I doing anything wrong here?"},"comment":{"url":"https://api.github.com/repos/colinta/motion-firebase/issues/comments/71378052","html_url":"https://github.com/colinta/motion-firebase/issues/11#issuecomment-71378052","issue_url":"https://api.github.com/repos/colinta/motion-firebase/issues/11","id":71378052,"user":{"login":"holgersindbaek","id":698979,"avatar_url":"https://avatars.githubusercontent.com/u/698979?v=3","gravatar_id":"","url":"https://api.github.com/users/holgersindbaek","html_url":"https://github.com/holgersindbaek","followers_url":"https://api.github.com/users/holgersindbaek/followers","following_url":"https://api.github.com/users/holgersindbaek/following{/other_user}","gists_url":"https://api.github.com/users/holgersindbaek/gists{/gist_id}","starred_url":"https://api.github.com/users/holgersindbaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holgersindbaek/subscriptions","organizations_url":"https://api.github.com/users/holgersindbaek/orgs","repos_url":"https://api.github.com/users/holgersindbaek/repos","events_url":"https://api.github.com/users/holgersindbaek/events{/privacy}","received_events_url":"https://api.github.com/users/holgersindbaek/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T15:46:59Z","updated_at":"2015-01-25T15:46:59Z","body":"I’m not sure what you mean. Can you give a quick example?\r\n\r\n--  \r\n\r\nAll the best\r\n\r\nHolger Sindbaek · UI/UX Designer & Web/iOS Programmer · HolgerSindbaek.com (http://holgersindbaek.com/)\r\n\r\nFounder of Uninkd · iOS Publishing for Content Creators · Uninkd.com (http://uninkd.com/)\r\n\r\n\r\n\r\nOn Sunday, January 25, 2015 at 10:00 AM, Colin T.A. Gray wrote:\r\n\r\n> That objective c message error usually means that the RubyMotion compiler doesn't know how to \"translate\" that method call. It might work if you include in your code (not somewhere that is ever executed, just in a dummy method) a call to that method.  \r\n>  \r\n>  \r\n> > On Jan 24, 2015, at 11:03 PM, holgersindbaek <notifications@github.com (mailto:notifications@github.com)> wrote:  \r\n> >  \r\n> > I'm not sure how to integrate Facebook login. Can you point me in the right direction? Do I need to include the Facebook SDK separate from this gem? Can you give an example of how you'd do the \"open_facebook_session\"?!  \r\n> >  \r\n> > \\  \r\n> > Reply to this email directly or view it on GitHub.  \r\n> >  \r\n>  \r\n> —\r\n> Reply to this email directly or view it on GitHub (https://github.com/colinta/motion-firebase/issues/11#issuecomment-71376236).\r\n>  \r\n>  \r\n>  \r\n>  \r\n>  "}}