{"action":"created","issue":{"url":"https://api.github.com/repos/nst/STTwitter/issues/188","labels_url":"https://api.github.com/repos/nst/STTwitter/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/nst/STTwitter/issues/188/comments","events_url":"https://api.github.com/repos/nst/STTwitter/issues/188/events","html_url":"https://github.com/nst/STTwitter/issues/188","id":67361989,"number":188,"title":"STTwitter Object is nil when Making Rootview controller  and pushing it ","user":{"login":"sunny45","id":10141150,"avatar_url":"https://avatars.githubusercontent.com/u/10141150?v=3","gravatar_id":"","url":"https://api.github.com/users/sunny45","html_url":"https://github.com/sunny45","followers_url":"https://api.github.com/users/sunny45/followers","following_url":"https://api.github.com/users/sunny45/following{/other_user}","gists_url":"https://api.github.com/users/sunny45/gists{/gist_id}","starred_url":"https://api.github.com/users/sunny45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunny45/subscriptions","organizations_url":"https://api.github.com/users/sunny45/orgs","repos_url":"https://api.github.com/users/sunny45/repos","events_url":"https://api.github.com/users/sunny45/events{/privacy}","received_events_url":"https://api.github.com/users/sunny45/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nst/STTwitter/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-09T13:27:48Z","updated_at":"2015-04-10T12:18:04Z","closed_at":"2015-04-10T07:09:47Z","body":"Everything works perfect in STTwitter Demo App . I have checked with replacing  my Consumer key and my consumer Secret key  \r\n\r\n    - (IBAction)loginWithTwitter:(id)sender\r\n    {\r\n        _twitter= [STTwitterAPI twitterAPIWithOAuthConsumerKey:@\"My Consumer Key\"\r\n                                                     consumerSecret:@\"My Consumer secret Key\"];\r\n        \r\n        \r\n        [_twitter postTokenRequest:^(NSURL *url, NSString *oauthToken) {\r\n            NSLog(@\"-- url: %@\", url);\r\n            NSLog(@\"-- oauthToken: %@\", oauthToken);\r\n            \r\n            [[UIApplication sharedApplication] openURL:url];\r\n            WebViewVC *webViewVC = [self.storyboard instantiateViewControllerWithIdentifier:@\"WebViewVC\"];\r\n            \r\n            [self presentViewController:webViewVC animated:YES completion:^{\r\n                NSURLRequest *requestTwiterURL = [NSURLRequest requestWithURL:url];\r\n                [webViewVC.webView loadRequest:requestTwiterURL];\r\n            }];\r\n            \r\n            \r\n        } authenticateInsteadOfAuthorize:NO\r\n                        forceLogin:@(YES)\r\n                        screenName:nil\r\n                     oauthCallback:@\"myapp://ascratech.com/\"\r\n                        errorBlock:^(NSError *error) {\r\n                            NSLog(@\"-- error: %@\", error);\r\n                        }];\r\n    \r\n    }\r\n    \r\n    - (void)setOAuthToken:(NSString *)token oauthVerifier:(NSString *)verifier\r\n    {\r\n        [self dismissViewControllerAnimated:YES completion:^{\r\n          \r\n        }];\r\n        \r\n        [self.twitter postAccessTokenRequestWithPIN:verifier successBlock:^(NSString *oauthToken, NSString *oauthTokenSecret, NSString *userID, NSString *screenName) {\r\n            NSLog(@\"-- screenName: %@\", screenName);\r\n            NSLog(@\"-- userID: %@\", userID);\r\n            NSLog(@\"-- oauthToken: %@\", oauthToken);\r\n            NSLog(@\"-- oauthTokenSecret: %@\", oauthTokenSecret);\r\n           \r\n            \r\n            \r\n            [self.twitter getUserInformationFor:screenName successBlock:^(NSDictionary *user) {\r\n                NSLog(@\"-- user info : %@\", user);\r\n    \r\n         \r\n            } errorBlock:^(NSError *error) {\r\n                NSLog(@\"-- error: %@\", error);\r\n            }];\r\n    \r\n          } errorBlock:^(NSError *error) {\r\n            \r\n            NSLog(@\"-- %@\", [error localizedDescription]);\r\n        }];\r\n    }\r\n    \r\n    \r\n    -(BOOL)application:(UIApplication *)application\r\n               openURL:(NSURL *)url\r\n     sourceApplication:(NSString *)sourceApplication\r\n            annotation:(id)annotation\r\n    {\r\n    \r\n     if ([[url scheme] isEqualToString:@\"myapp\"] )\r\n        {\r\n            NSDictionary *d = [self parametersDictionaryFromQueryString:[url query]];\r\n            NSString *token = d[@\"oauth_token\"];\r\n            NSString *verifier = d[@\"oauth_verifier\"];\r\n             CGSize iOSScreenSize=[[UIScreen mainScreen]bounds].size;\r\n    \r\n    if(iOSScreenSize.height==568)\r\n            {\r\n                UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@\"iphone5\" bundle: nil];\r\n                WelcomeViewController   *WelcomeVC = [storyboard   instantiateViewControllerWithIdentifier:@\"WelcomeViewController\"];\r\n                            [(UINavigationController *)self.window.rootViewController pushViewController:WelcomeVC animated:YES];\r\n                 [WelcomeVC setOAuthToken:token oauth Verifier:verifier];\r\n            }\r\n    return yes;\r\n    }\r\n\r\nPlease help me out .\r\nI have  attached your code screen shot and My code as well . I have circled things which are not same. betwen yours and mine \r\n\r\nthis is my Login page\r\n![screen shot 2015-04-09 at 6 35 53 pm](https://cloud.githubusercontent.com/assets/10141150/7067477/2899eb76-dee9-11e4-8727-a3d690e0ec28.png)\r\n\r\n\r\nthis screen shot is from your demo app\r\n\r\n![screen shot 2015-04-09 at 6 43 06 pm](https://cloud.githubusercontent.com/assets/10141150/7067433/d848668e-dee8-11e4-90f7-e70747d4e55d.png)\r\n\r\n\r\nthis screen shot is from my app\r\n\r\n\r\n![screen shot 2015-04-09 at 6 43 54 pm](https://cloud.githubusercontent.com/assets/10141150/7067434/d850daee-dee8-11e4-97d5-2715c2142dcc.png)\r\n"},"comment":{"url":"https://api.github.com/repos/nst/STTwitter/issues/comments/91535365","html_url":"https://github.com/nst/STTwitter/issues/188#issuecomment-91535365","issue_url":"https://api.github.com/repos/nst/STTwitter/issues/188","id":91535365,"user":{"login":"nst","id":51388,"avatar_url":"https://avatars.githubusercontent.com/u/51388?v=3","gravatar_id":"","url":"https://api.github.com/users/nst","html_url":"https://github.com/nst","followers_url":"https://api.github.com/users/nst/followers","following_url":"https://api.github.com/users/nst/following{/other_user}","gists_url":"https://api.github.com/users/nst/gists{/gist_id}","starred_url":"https://api.github.com/users/nst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nst/subscriptions","organizations_url":"https://api.github.com/users/nst/orgs","repos_url":"https://api.github.com/users/nst/repos","events_url":"https://api.github.com/users/nst/events{/privacy}","received_events_url":"https://api.github.com/users/nst/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T12:18:04Z","updated_at":"2015-04-10T12:18:04Z","body":"cool :)"}}