Skip to content

eagle-dan1349/Facebook-iOS-SDK-RACExtensions

Repository files navigation

Facebook-iOS-SDK-RACExtensions

CI Status Version License Platform

Facebook-iOS-SDK-RACExtensions are a set of tools for Facebook SDK for iOS aimed to bring work with Facebook to a better Reactive World.

WARNING

After Facebook SDK updated to version 4 with new architecture, this component is OUTDATED, for compatibility with new FBSDK take a look at new extensions pack

Getting started

RACExtesions for Facebook iOS SDK provide convince around block-based methods of SDK. Returned signals are cold (unles otherwise is stated) and start automatically upos subscription. Result of requests, authorisation, etc are sent back to you the subscriber.

FBSession* session = 
[[FBSession alloc] initWithPermissions:@[
                                                            @"public_profile",
                                                            @"email",
                                                            @"user_photos",
                                                            @"user_birthday"]];

[[session rac_open] 
 subscribeNext:^(RACTuple* sessionAndState)
 {
    //A tuple with (FBSession, FBSessionState)
 }
        error:^(NSError* error)
 {
    //Error if any
 }];

Installation

Facebook-iOS-SDK-RACExtensions is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Facebook-iOS-SDK-RACExtensions"

Author

eagle-dan1349, eagle.dan.1349@gmail.com

License

Facebook-iOS-SDK-RACExtensions is available under the MIT license. See the LICENSE file for more info.

Pull requests welcome!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages