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.
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
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
}];
Facebook-iOS-SDK-RACExtensions is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Facebook-iOS-SDK-RACExtensions"
eagle-dan1349, eagle.dan.1349@gmail.com
Facebook-iOS-SDK-RACExtensions is available under the MIT license. See the LICENSE file for more info.
Pull requests welcome!