I have been able to pass the user.name facebook properties to profileViewController.
But I'm not able to send the FBProfilePicture though here is the method below:
// this method will be called when the user information has been fetched
- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView user:(id<FBGraphUser>)user
{
FBProfilePicture.profileID = user.id;
FBNamePass = user.name;
[self pushViewController:FBNamePass andProfilePicture:FBProfilePicture];
}
and here's the method:
- (void)pushViewController:(NSString *)user andProfilePicture:(FBProfilePictureView *)profilePicture
{
NeXtViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"NeXt"];
controller.FBNameString = user;
//controller.profilePicture.profileID = profilePicture.profileID;
[controller setFBProfilePicture:profilePicture];
[self.navigationController pushViewController:controller animated:NO];
}
Is there anything im doing wrong?