Here is the log , it’s works well on FB native but also onShareCancel when share success on browser, wish it could help.
2018-02-01 10:35:38.770 FishGame-mobile[34202:9088002] FBSDKLog: FBSDKAppEvents: Flushed @ 1517452537, 1 events due to 'Timer' - {
"advertiser_tracking_enabled" = 1;
"anon_id" = "XZ0C116E8C-36B0-411D-AD22-637E54293D13";
"application_tracking_enabled" = 1;
event = "CUSTOM_APP_EVENTS";
extinfo = "[\"i2\",\"com.ipalmplay.domino\",\"1.0\",\"1.0.0\",\"9.2\",\"iPhone7,2\",\"zh_CN\",\"GMT+8\",\"\U4e2d\U56fd\U8054\U901a\",667,375,\"2.00\",2,56,24,\"Asia\\/Shanghai\"]";
"url_schemes" = "[\"fb1042126042552183\"]";
}
Events: [
{
"event" : {
"_ui" : "FBSDKContainerViewController",
"_eventName" : "fb_dialog_share_show",
"fb_dialog_mode" : "Automatic",
"_logTime" : 1517452528,
"_implicitlyLogged" : "1",
"fb_dialog_share_content_type" : "Status"
},
"isImplicit" : true
}
]
Flush Result : Success
2018-02-01 10:35:41.480 FishGame-mobile[34202:9088002] FBSDKLog: FBSDKAppEvents Persist: Writing 0 events
2018-02-01 10:35:41.498 FishGame-mobile[34202:9088002] FBSDKLog: FBSDKTimeSpentData Persist: {"lastSuspendTime":1517452541,"numInterruptions":14,"sessionID":"5A2E9412-1A2D-471F-96F1-0254670AD8B5","secondsSpentInCurrentSession":178}
D/AudioEngine-inl.mm (172): UIApplicationWillResignActiveNotification
2018-02-01 10:35:41.585 FishGame-mobile[34202:9088002] FBSDKLog: FBSDKTimeSpentData Restore: {"lastSuspendTime":1517452541,"numInterruptions":14,"sessionID":"5A2E9412-1A2D-471F-96F1-0254670AD8B5","secondsSpentInCurrentSession":178}
2018-02-01 10:35:41.587 FishGame-mobile[34202:9088002] #### ACTIVE
D/AudioEngine-inl.mm (182): UIApplicationDidBecomeActiveNotification
JS: onSharedCancel============
JS: share canceled
2018-02-01 10:35:53.420 FishGame-mobile[34202:9088002] FBSDKLog: FBSDKAppEvents: Flushed @ 1517452552, 1 events due to 'Timer' - {
"advertiser_tracking_enabled" = 1;
"anon_id" = "XZ0C116E8C-36B0-411D-AD22-637E54293D13";
"application_tracking_enabled" = 1;
event = "CUSTOM_APP_EVENTS";
extinfo = "[\"i2\",\"com.ipalmplay.domino\",\"1.0\",\"1.0.0\",\"9.2\",\"iPhone7,2\",\"zh_CN\",\"GMT+8\",\"\U4e2d\U56fd\U8054\U901a\",667,375,\"2.00\",2,56,24,\"Asia\\/Shanghai\"]";
"url_schemes" = "[\"fb1042126042552183\"]";
}
Events: [
{
"event" : {
"_ui" : "FBSDKContainerViewController",
"_eventName" : "fb_dialog_share_result",
"_logTime" : 1517452542,
"fb_dialog_outcome" : "Completed",
"_implicitlyLogged" : "1"
},
"isImplicit" : true
}
]
Flush Result : Success
and here is my callback codes
onSharedSuccess: function(data) {
cc.log(“onSharedSuccess============”);
cc.log(JSON.stringify(data));
self.showText(“share successful”);
},
onSharedFailed: function(data) {
cc.log(“onSharedFailed============”);
cc.log(JSON.stringify(data));
self.showText(“share failed”);
},
onSharedCancel: function() {
cc.log(“onSharedCancel============”);
self.showText(“share canceled”);
},