iphone,objective-c,facebook,ios7,acaccountstore
Ahh, figured it out. The good news is that this is definitely possible. Just go into your Facebook app's settings and add another bundle id. Make sure that the bundle id you've set in your app is exactly the same as the one you add to facebook. In my case,...
After some investigation on Facebook SDK I found a solution. The path which I was following was different and the thing that I found after some investigation was different but a easy one. Facebook provides. FacebookLoginView: Uses prebuilt ui components to authenticate user stored in Facebook app. FBSession:Facebook login to...
As per the document : Add the code in your button press : Objective-C [[Twitter sharedInstance] logInWithCompletion:^ (TWTRSession *session, NSError *error) { if (session) { NSLog(@"signed in as %@", [session userName]); } else { NSLog(@"error: %@", [error localizedDescription]); } }]; Swift Twitter.sharedInstance().logInWithCompletion { (session, error) -> Void in if (session...
ios,twitter,twitter-oauth,acaccount,acaccountstore
Twitter has provided a beautiful framework for that, you just have to integrate it in your app. https://dev.twitter.com/twitter-kit/ios It has a simple Login Method:- // Objective-C TWTRLogInButton* logInButton = [TWTRLogInButton buttonWithLogInCompletion: ^(TWTRSession* session, NSError* error) { if (session) { NSLog(@"signed in as %@", [session userName]); } else { NSLog(@"error: %@",...
ios,objective-c,facebook,social-framework,acaccountstore
if([SLComposeViewController instanceMethodForSelector:@selector(isAvailableForServiceType)] != nil) { if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { SLComposeViewController *composeViewController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; [composeViewController setInitialText:@"Hello"]; [composeViewController setCompletionHandler:^(SLComposeViewControllerResult result) { switch (result) { case SLComposeViewControllerResultCancelled:...