Skip to content

Instantly share code, notes, and snippets.

@johnny77221
Created February 19, 2016 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnny77221/7099756cedb18ff0f3bc to your computer and use it in GitHub Desktop.
Save johnny77221/7099756cedb18ff0f3bc to your computer and use it in GitHub Desktop.
Facebook Login Helper
//
// 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