Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source: New Easy Facebook API Helper Library Using Blocks

  •  
  •  
  •  
  •  
  •  

This library utilizes blocks, and provides Facebook SDK helper months.

The Facebook API and iOS SDK has evolved over time, and some of the projects and libraries that I’ve mentioned in the past no longer work without some tweaking.

This new up-to-date library allows you to easily perform key Facebook API functions such as logging in, getting a user’s friends, posting photos, post wall updates and more very easy.

The library makes use blocks for call backs which is key to making the syntax very clean and concise.

For example here’s the code required to set up a button for a Facebook login taken from the Github page:

#import "SCFacebook.h"
@implementation ViewController

#pragma mark - Button Action
- (IBAction)login:(id)sender {

    [SCFacebook loginCallBack:^(BOOL success, id result) {
            if (success) {
            }
        }];
}

As you can see the usage of blocks makes everything very clean.

The framework is from Lucas Correa and you can find it on Github here.

If you’re looking for a quick and easy way to implement basic Facebook functionality this is a great library to check out.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments