Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yaniv92648

macrumors member
Original poster
Hi,
i managed to login to facebook in my app:

Code:
session = [FBSession sessionForApplication:API_KEY secret:APP_SECRET delegate:self];
FBLoginDialog* loginDialogFacebook = [[FBLoginDialog alloc] initWithSession:session];
[loginDialogFacebook show];
[loginDialogFacebook release];

and now i wanna post 2 wall:

Code:
FBPermissionDialog* permissionDialog = [[FBPermissionDialog alloc] initWithFrame:[self.view frame]];
[permissionDialog setDelegate:self];
[permissionDialog setPermission:@"publish_stream"];
[permissionDialog show];
[permissionDialog release];

the problem is the dialog that's being popped is an empty gray screen..

anyone..?

Thanks!
 
I handled that issue but i have 2 more issues..

1.
In the FBPermissionDialog there are the buttons "Allow" and "Don't Allow".
both of them result in the method:
- (void)dialogDidSucceed🙁FBDialog *)dialog
in the FBDialogDelegate.
i didn't find any clue to what the user clicks in the parameter:
(FBDialog *)dialog.

2.
I wanna close the Post2Wall Dialog (FBStreamDialog):
[dialog removeFromSuperview];
after the user clicks publish but i don't know how to identify the click..

Thanks.
 
1.
In the FBPermissionDialog there are the buttons "Allow" and "Don't Allow".
both of them result in the method:
- (void)dialogDidSucceed🙁FBDialog *)dialog
in the FBDialogDelegate.
i didn't find any clue to what the user clicks in the parameter:
(FBDialog *)dialog.
This is a known bug with the Facebook Connect API: iPhone - Detecting "No, Thanks" button on FBFeedDialog. There used to be a workaround but Facebook has since modified the HTML for the permissions page to prevent it from working.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.