FacebookConnect API

Discussion in 'iOS Programming' started by yaniv92648, May 23, 2010.

  1. yaniv92648 macrumors member

    Joined:
    Oct 26, 2009
    #1
    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!
     
  2. yaniv92648 thread starter macrumors member

    Joined:
    Oct 26, 2009
    #2
    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.
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    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.
     

Share This Page