Jump to content

Shahdee
 Share

Recommended Posts

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!
 

Instant Games 2019-01-22 18-39-09.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...