2011-05-26 80 views
0

我用這個代碼在Facebook上張貼從我的應用程序在iPhoneFacebook的關於對話框飼料iPhone SDK的問題

NSString *title=[NSString stringWithFormat:@"Posted from Poems of Love v2 iPhone/iPod/iPad touch app - { Poem Name: "]; 
//& titletext.text & ""\","; 
NSString *alltitle= [title stringByAppendingString:poemtitle.text]; 
alltitle= [alltitle stringByAppendingString:@" } - { Author:"]; 
alltitle= [alltitle stringByAppendingString:authorname.text]; 
NSString *alltitle1= [alltitle stringByAppendingString:@" }"]; 

    NSString *list = poembody.text; 
    NSString *[email protected]"numid"; 
    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: 
            kAppId, @"app_id", 
            @"http://www.poemsofloveapp.com", @"link", 
            @"http://3.bp.blogspot.com/_co4MVQE_2l0/TPRh6TBjaZI/AAAAAAAAAOg/E0kgWLd4ieE/s1600/poemsoflovev2logo.png", @"picture", 
            alltitle1, @"name", 
            @"\nhttp://www.poemsofloveapp.com - Join us on facebook!\n", @"caption", 
            list, @"description", 
            @"",@"message", 
            nil]; 
    [mainDelegate._session dialog:@"feed" andParams:params andDelegate:self]; 

的對話框顯示了我點擊跳過或發佈,然後第二個對話框顯示出來裏面是空的!沒有消息沒有任何東西

這是爲什麼發生?

回答

0

我的錯誤抱歉,我打電話給[mainDelegate._session dialog:@「feed」andParams:params andDelegate:self]; 兩次以前愚蠢我知道!