{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/2821","repository_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa","labels_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/2821/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/2821/comments","events_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/2821/events","html_url":"https://github.com/ReactiveCocoa/ReactiveCocoa/issues/2821","id":150795165,"number":2821,"title":"How do i bind Viewmodel methods to ViewControllers ","user":{"login":"vishal91","id":3819785,"avatar_url":"https://avatars.githubusercontent.com/u/3819785?v=3","gravatar_id":"","url":"https://api.github.com/users/vishal91","html_url":"https://github.com/vishal91","followers_url":"https://api.github.com/users/vishal91/followers","following_url":"https://api.github.com/users/vishal91/following{/other_user}","gists_url":"https://api.github.com/users/vishal91/gists{/gist_id}","starred_url":"https://api.github.com/users/vishal91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishal91/subscriptions","organizations_url":"https://api.github.com/users/vishal91/orgs","repos_url":"https://api.github.com/users/vishal91/repos","events_url":"https://api.github.com/users/vishal91/events{/privacy}","received_events_url":"https://api.github.com/users/vishal91/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-25T09:05:45Z","updated_at":"2016-04-25T10:53:58Z","closed_at":null,"body":"Hi , \r\n\r\ni am trying to implement Facebook/google login with MVVM and ReactiveCocoa. Please can you help how to bind methods to viewcontrollers . \r\n`FBSDKLoginManager().logInWithReadPermissions([\"public_profile\", \"email\", \"user_friends\"], fromViewController: nil) { (FBSDKLoginManagerLoginResult!, NSError!) in\r\n     }`\r\n\r\nand how to pass viewcontroller in this method if its implemented in Viewmodel ?"},"comment":{"url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/comments/214263123","html_url":"https://github.com/ReactiveCocoa/ReactiveCocoa/issues/2821#issuecomment-214263123","issue_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/2821","id":214263123,"user":{"login":"vishal91","id":3819785,"avatar_url":"https://avatars.githubusercontent.com/u/3819785?v=3","gravatar_id":"","url":"https://api.github.com/users/vishal91","html_url":"https://github.com/vishal91","followers_url":"https://api.github.com/users/vishal91/followers","following_url":"https://api.github.com/users/vishal91/following{/other_user}","gists_url":"https://api.github.com/users/vishal91/gists{/gist_id}","starred_url":"https://api.github.com/users/vishal91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishal91/subscriptions","organizations_url":"https://api.github.com/users/vishal91/orgs","repos_url":"https://api.github.com/users/vishal91/repos","events_url":"https://api.github.com/users/vishal91/events{/privacy}","received_events_url":"https://api.github.com/users/vishal91/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T10:53:58Z","updated_at":"2016-04-25T10:53:58Z","body":"@RuiAAPeres \r\n\r\n`        signupView.fbBtn.rex_pressed  <~ SignalProducer(value: viewModel.loginWithfacebook(self, completion: { (executed) in\r\n            self.navigationController?.pushViewController(ROnboardingViewController(state:.emailSignup,model:self.viewModel), animated: true)\r\n        }))`\r\n\r\nrex_pressed is not the member"}}