刪除通過API發佈到朋友的時間表的能力我們發現,通過API(stream.publish)在朋友的牆上發佈內容會導致用戶不滿(隱藏內容,阻止應用程序)的高發生率。遷移期過後,不再允許通過stream.publish向朋友的時間表發佈內容。請使用Feed Dialog for posting
// only supports passing a single image
NSArray* images = @[
@{@"url": [UIImage imageNamed:@"my-awesome-meal-photo.jpg"], @"user_generated" : @"true" }
];
id<FBOpenGraphAction> action = (id<FBOpenGraphAction>)[FBGraphObject graphObject];
[action setObject:@"https://example.com/cooking-app/meal/Lamb-Vindaloo.html" forKey:@"meal"];
[action setObject:images forKey:@"image"];
[FBDialogs presentShareDialogWithOpenGraphAction:action
actionType:@"fbsdktoolkit:cook"
previewPropertyName:@"meal"
handler:^(FBAppCall *call, NSDictionary *results, NSError *error) {
if(error) {
NSLog(@"Error: %@", error.description);
} else {
NSLog(@"Success!");
}
}];
我可以用張貼到朋友的牆壁'[FBWebDialogs presentFeedDialogModallyWithSession ..]'。見[this](https://developers.facebook.com/docs/reference/dialogs/feed/)。我寫了它。 – saintech
這裏是鏈接[通過提要對話框](https://developers.facebook.com/docs/ios/ui-controls#feeddialog) – Pawan
你可以告訴應用程序的設置相同。當我使用這個代碼後,按鈕是灰色的。我應該怎麼做? – python