I am a new Programmer in Iphone… i wants use facebook in my app..and i wants post wall comment in facebok…
my problem i got following error when i run application….there is only one error……
Undefined symbols:
"_OBJC_CLASS_$_FBStreamDialog", referenced from:
objc-class-ref-to-FBStreamDialog in GApplicationViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
- (void)viewDidLoad {
static NSString* kApiKey = @"xxxxxxxxxxxxxxxxxxxxxxxx";
static NSString* kApiSecret = @"yyyyyyyyyyyyyyyyyyyyyyyyyyyy";
_session = [[FBSession sessionForApplication:kApiKey secret:kApiSecret delegate:self] retain];
[_session resume];
[super viewDidLoad];
}
thanks for giving your valuable time for my code….
You probably forgot to link the Facebook library. See this question (ignore that it’s about the simulator, the issue is the same).