For implementing Facebook in your project use the latest FBGraph Method which is the latest from Facebook. You will have to import the FBGraph and the JSON parser first. Then add the following methods in the class you want to add the shareview :)
Here's some code to help you along,
-(void)buttonActionFb
{
//postFeedButton.hidden=NO;
NSString *client_id = @"130902823636657";
self.fbGraph =[[FbGraph alloc] initWithFbClientID:client_id];
[fbGraph authenticateUserWithCallbackObject:self andSelector:@selector(fbGraphCallback:) andExtendedPermissions:@"user_photos,user_videos,publish_stream,offline_access,user_checkins,friends_checkins"];
}
- (void)fbGraphCallback:(id)sender
{
if ((fbGraph.accessToken==nil)||([fbGraph.accessToken length]==0)) {
// NSLog(@"You pressed the 'cancel' or 'Dont Allow' button, you are NOT logged into Facebook...");
//resart authentication process...
[fbGraph authenticateUserWithCallbackObject:self andSelector:@selector(fbGraphCallback:) andExtendedPermissions:@"user_photos,user_videos,publish_stream,offline_access,user_checkins,friends_checkins"]; }
else
{
UIAlertView *alertfB=[[UIAlertView alloc] initWithTitle:@"Note" message:nil
delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alertfB show];
// NSLog(@"LOG IN FACEBBOK %@",fbGraph.accessToken);
}
}