Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Passing data between views

i have creates a login view which enables you to login with facebook, i have watched tutorials on youtube on how to pass data between views but is it different with facebook info. for one i dont know if i have to place the delegates in the profileViewControllers (where the the profilePicture, name, log in status are) or i have to place them in the loginViewController i tried to pass the data like so

this is in the loginViewController

// this method will be called when the user information has been fetched            -   (void)loginViewFetchedUserInfo:(FBLoginView *)loginView user:     (id<FBGraphUser>)user
HomeViewController *profile = [[HomeViewController alloc] init];
profile.namePass.text = user.name;
profile.profilePicturePass.profileID = user.id;


i created the properties in profileViewController.h

@property (strong ,nonatomic) FBProfilePictureView *profilePicturePass;
@property (strong, nonatomic) UILabel *namePass;

and placed this in viewDidLoad: in profileViewController.m

self.profilePictureView = self.profilePicturePass;
self.nameLabel = self.namePass;

i dont know what im doing wrong i followed the tutorial on passing data but there is not specific tutorial for facebook info if it is different please help thanks