简体   繁体   English

如何处理facebook对话框apprequest的取消按钮?

[英]How handle cancel button of facebook dialog apprequest?

As you know, you can display some facebook views to make some operations, like app requests, post etc. There is a delegate to manage the callbacks like : dialogDidComplete: , dialogDidNotComplete: . 如您所知,您可以显示一些Facebook视图以进行某些操作,例如应用程序请求,发布等。有一个委托来管理回调,例如: dialogDidComplete:dialogDidNotComplete: . The view is like that : 视图是这样的: 在此输入图像描述

But there is not differentiation between the cancel and share button. 但取消和分享按钮之间没有区别。 You will have the same callback in dialogDidComplete: . 您将在dialogDidComplete:拥有相同的回调dialogDidComplete: The only way to manage a cancelation is the little cross in the corner. 管理取消的唯一方法是角落里的小十字架。 In my case I would like to do some operations if the user pressed share and not when he pressed Cancel. 在我的情况下,如果用户按下共享而不按下取消,我想做一些操作。 The private social network Path manage this case and I'm wondering how ? 私人社交网络路径管理这个案例,我想知道如何?

Do you guys have some ideas ? 你们有什么想法吗?

If I am not wrong: 如果我没错:

  • if you press Share you get a requestID back as part of the returned URL 如果按Share则会返回一个requestID作为返回URL的一部分

  • if you press Cancel you are returned into dialogDidComplete but it does not return a requestID back as part of the returned URL. 如果按“ Cancel ,则返回到dialogDidComplete但它不会返回requestID作为返回URL的一部分。

Code: 码:

- (void)dialogCompleteWithUrl:(NSURL *)url {
     if (![url query]) {
         NSLog(@"User canceled dialog or there was an error");
         return;
     }
  }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 您如何预先授权Facebook对话框-如申请? - How do you pre-authorize a facebook dialog - like an apprequest? Facebook授权对话框没有取消按钮? - Facebook authorize dialog has no cancel button? iOS上的Facebook共享对话框/进纸对话框-如何知道是否轻按了共享按钮或取消按钮 - Facebook Share Dialog/Feed Dialog on iOS - how to know if share button or cancel button is tapped 在移动设备浏览器中无法打开Facebook请求对话框 - Facebook apprequest dialog not open in mobile device browser 使用会话处理Facebook iOS中的取消按钮 - Handle cancel button in facebook iOS using session Facebook“apprequest”对话框要求登录 facebook,因为应用程序已经将其登录到 facebook - Facebook "apprequest" dialog asks for facebook login where as app is already logged it to facebook 如何跟踪从Unity应用发送的Facebook appRequest? - How to track Facebook appRequest that send from Unity app? 如何在新的联系人视图中处理取消和完成按钮 - How to handle cancel and done button in new contact view 如何处理“警报”中针对位置服务弹出的“取消”按钮 - How to handle “Cancel” button on Alert pop up for Location services 如何检测在Facebook登录期间是否按下了取消按钮 - how to detect if the cancel button is pressed during the facebook login
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM