gpt4 book ai didi

ios - 适用于 iOS 的 Facebook Connect : dialogDidComplete response differentiation

转载 作者:IT王子 更新时间:2023-10-29 08:17:30 26 4
gpt4 key购买 nike

我想知道如何区分用户在内联后流 FBDialog 中点击提交或跳过。有人知道要测试什么吗?

我在 iOS 4.2 环境中使用最新的 iOS Facebook Connect。

/**
* Called when a UIServer Dialog successfully return.
*/
- (void)dialogDidComplete:(FBDialog *)dialog {
if user tapped submit and post was successful
alert user of successful post

if user tapped "skip" (cancel equivalent)
do not display alert
}

最佳答案

正如 Fede 和 kennbrodhagen 所说,这看起来是最简单的方法(直到 Facebook 修复了这个错误):


- (void) dialogCompleteWithUrl:(NSURL*) url
{
if ([url.absoluteString rangeOfString:@"post_id="].location != NSNotFound) {
//alert user of successful post
} else {
//user pressed "cancel"
}
}

关于ios - 适用于 iOS 的 Facebook Connect : dialogDidComplete response differentiation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4411923/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com