Search the Community
Showing results for tags 'shareasync'.
-
Hey, guys! Did anybody experience this problem with shareAsync? Basically, it seems like shareAsync promise resolves too early and it also depends on a platform. Here is how it looks like in my code: case SHARE_ASYNC: if (p_param) { FBInstant .shareAsync( p_param ) .then( function() { console.log( "*** FBInstant.shareAsync() ok" ); if (p_callback) p_callback( null ); }) .catch(function( p_err ) { console.log( "*** FBInstant.shareAsync() failed: " ); console.log( p_err ); if (p_callback) p_callback( p_err ); }) } else { console.log( "***UPDATE_ASYNC: invalid parameter" ); } break; So, on: 1 On mobile I get *** FBInstant.shareAsync() ok whenever I tap on empty part of the screen in order to close native sharing dialog. 2 On PC I get *** FBInstant.shareAsync() ok whenever I click on Share button while native Fb dialog is being opened. Along with that, Fb throws some POST exceptions (screenshot is attached) I feel like instead, regardless of two cases, I should get *** FBInstant.shareAsync() ok whenever a user clicks Share button (in native window) and *** FBInstant.shareAsync() failed whenever he closes the native dialog. And, of course, no exceptions Any feedback is appreciated!
- 1 reply
-
- fb
- instantgames
-
(and 4 more)
Tagged with:
-
When i call shareAsync function, in chrome console gives next errors: POST https://www.facebook.com/react_composer/logging/ods/?event=bootload_start&attachment_type=MEDIA&dpr=1 404 () ErrorUtils caught an error: "<![EX[["Async request failed with error %s: %s when requesting %s","404","Про...". Subsequent errors won't be logged; see https://fburl.com/debugjs. POST https://www.facebook.com/react_composer/logging/ods/?event=bootstrap_start&attachment_type=MEDIA&dpr=1 404 () Can anybody tell me how it happens or how i can solve it. Thanks.