0
我想在iOS6上發佈Facebook。我的方式做到這一點:iOS Facebook SDK 3.5發佈。應用程序名稱不顯示(通過「iOS」發佈的帖子)
- 詢問讀取權限
- 詢問發佈許可
- 呼叫[FBDialogs presentOSIntegratedShareDialog ...]
它的工作原理,但在飼料中我看到「通過iOS版「而我希望看到我的應用名稱。它如何被修復?如果讓我用飼料對話框(基於web)出版物 - 我的應用程序名稱顯示正確
- (IBAction)facebookShareButtonTaped:(id)sender
{
[FBSession openActiveSessionWithReadPermissions:@[@"email"]
allowLoginUI:YES
completionHandler:^(FBSession *session, FBSessionState status, NSError *error)
{
if (status == FBSessionStateOpen)
{
[FBSession.activeSession requestNewPublishPermissions:@[@"publish_actions"] defaultAudience:FBSessionDefaultAudienceOnlyMe completionHandler:^(FBSession *session, NSError *error) {
[self sendFacebookPost];
}];
}
}];
}
- (BOOL)sendFacebookPost
{
BOOL dialogShown = [FBDialogs presentOSIntegratedShareDialogModallyFrom:self initialText:@"" image:nil url:nil handler:^(FBOSIntegratedShareDialogResult result, NSError *error) {
if (error && [error code] == 7)
{
return;
}
if (error)
{
[self showAlert:[self checkErrorMessage:error]];
}
else if (result == FBNativeDialogResultSucceeded)
{
[self showAlert:@"Posted successfully."];
}
}];
return dialogShown;
}
你能找出這一個嗎?我面臨同樣的問題 – 2013-05-06 05:44:16
不幸的是我沒有 – Division 2013-05-06 09:52:46