Created
February 19, 2016 07:46
-
-
Save johnny77221/7099756cedb18ff0f3bc to your computer and use it in GitHub Desktop.
Facebook Login Helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// JHFacebookLogin.h | |
// | |
// Created by John Hsu on 2016/2/19. | |
// | |
#import <Foundation/Foundation.h> | |
#import <Accounts/Accounts.h> | |
#import <Social/Social.h> | |
@interface JHFacebookLogin : NSObject | |
+(void)loginFacebook:(void(^)(NSDictionary *meObject, NSError *err))handler; | |
@property (nonatomic, strong) ACAccountStore *accountStore; | |
@property (nonatomic, strong) ACAccount *facebookAccount; | |
@property (nonatomic, copy) void(^handler)(NSDictionary *meObject,NSError *err); | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment