Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3147] New Facebook module doesn't return cancelled code when user cancels (1.6.0RC1))

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNeeds more info
Resolution Date2012-07-26T16:40:33.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsapi
Reporterconnysvensson
AssigneeNeeraj Gupta
Created2011-04-15T03:38:04.000+0000
Updated2017-03-16T20:41:22.000+0000

Description

If calling the Ti.Facebook.dialog method to let the user post something to their feed and click the Skip button I assume I should get the cancelled = true in the event object. Otherwise there is no way to tell if the user went through with the post.

Below is the output in the console when the user clicked Skip

[INFO] dialogCompleteWithUrl = fbconnect://success

[INFO] Received publish stream response = {type

and here is the same output when they clicked Post

[INFO] dialogCompleteWithUrl = fbconnect://success/?post_id=618961171_133961986669614

[INFO] Received publish stream response = {type

In both scenarios success is set to true, the only thing that differs is the post?id parameter in the url, but I don't think we have access to that. The correct behavior shuld be that cancelled = true when the user clicks "Skip". The same thing should for the login scenario, this I haven't tried. I've only tried this with iOS 4.2

Comments

  1. connysvensson 2011-04-15

    Should have used Preview before posting, here comes the console output part again.

    Below is the output in the console when the user clicked Skip

       [INFO] dialogCompleteWithUrl = fbconnect://success
       
       [INFO] Received publish stream response = {"type":"result","source":{},"url":{},"success":true,"cancelled":false}
       

    and here is the same output when they clicked Post

       [INFO] dialogCompleteWithUrl = fbconnect://success/?post_id=618961171_133961986669614
       
       [INFO] Received publish stream response = {"type":"result","source":{},"url":{},"success":true,"cancelled":false}
       
  2. Stephen Tramer 2012-07-26

    Does not include complete & valid test case

    This ticket can be reopened when this is provided.
  3. Lee Morris 2017-03-16

    Closing ticket as the information that was requested was never provided.

JSON Source