I am new to iphone development, I want to display permission page after login to facebook.
buttonIndex is the index of my action tables.
if(buttonIndex == 1) { session = [FBSession sessionForApplication:@"My App key" secret:@"My Key" delegate:self]; FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:session] autorelease]; [dialog show]; }
using this code successfully loggin for facebook, but I want the permission page to display,
so i can use
- (void)session:(FBSession*)session didLogin:(FBUID)uid { NSLog(@"User with id %lld logged in.", uid); FBPermissionDialog* dialog1 = [[[FBPermissionDialog alloc] init] autorelease]; dialog1.delegate = self; dialog1.permission = @"uid"; [dialog1 show]; }
But it does not work. Where can I put this code. And I want to share my content after permission.
If I log out of facebook, it goes to the browser, but I want to return my application after logging out,
Please help me, advise me plz.
Pugal source share