1
我知道這裏有很多問題,但沒有一個答案似乎適用於我:( 我試圖從我的文章發佈到用戶Facebook牆iPhone應用程序。我已經有Facebook的delveloper東西成立,幾乎一切工作,幾乎。從iOS應用程序發佈到用戶Facebook牆
facebook = [[Facebook alloc] initWithAppId:@"123813234381280"];
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if ([defaults objectForKey:@"FBAccessTokenKey"]
&& [defaults objectForKey:@"FBExpirationDateKey"]) {
facebook.accessToken = [defaults objectForKey:@"FBAccessTokenKey"];
facebook.expirationDate = [defaults objectForKey:@"FBExpirationDateKey"];
}
if (![facebook isSessionValid]) {
NSArray* permissions = [[NSArray arrayWithObjects:
@"publish_stream", nil] retain];
[facebook authorize:permissions delegate:self];
}
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"123813234381280", @"app_id",
@"http://test.com/", @"link",
@"Test-Name", @"name",
//@"Reference Documentation", @"caption",
@"Download the app NOW from the App Store", @"description",
@"Test-Message", @"message",
nil];
[facebook dialog:@"feed" andParams:params andDelegate:self];
現在出現了一個對話框,但文本字段,它應該說「測試信息」中它是空的你知道,它說什麼在牆上發佈什麼,其他所有的工作,描述,鏈接,名稱,除了消息之外的所有內容。大人幫助我嗎?