Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.
/ FBasic Public archive

Simple class that allows you to get user's profile and share post.

Notifications You must be signed in to change notification settings

pavlonadolynskyi/FBasic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

FBasic

System Requirements

iOS 6+

Installation

Add Social.framework.
Drag FBasic.h and .m to your project.
Add in project settings > Info your FacebookAppID.

Usage

#import "FBasic.h"
#import <Accounts/Accounts.h>

[FBasic requestProfile:^(NSArray *accounts, void (^pickedAccount)(ACAccount *)) {
        pickedAccount([accounts lastObject]);
} success:^(NSDictionary *profile) {
	NSLog(@"%@", profile[kNameKey]);
} failure:^(NSString *error) {
	
}];
    
[FBasic shareImage:nil URL:nil text:@"Добро побеждает зло." success:^{
	
} failure:^(NSString *e) {
	
}];

About

Simple class that allows you to get user's profile and share post.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published