Menu
  • HOME
  • TAGS

Share 1 Facebook App ID with multiple iOS Apps using ACAccountStore

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,...

Find Facebook account attached to iPhone

ios,acaccount,acaccountstore

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...

Can I customize Login button of Twitter kit in iOS?

ios,acaccountstore

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...

Get user profile details (especially email address) from twitter in iOS

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: %@",...

How to detect If user is Logged in the Facebook from native OS

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:...