title: Connection Failure error with facebook share on Android
body: <p>I'm trying to implement facebook share on Android using Facebook SDK 4.41.0
  However, I'm facing the following issue: When the share dialog should appear, it is immediately closed and the OnError callback method is throwing the following error</p>
  
  <pre><code>CONNECTION_FAILURE: CONNECTION_FAILURE
      at com.facebook.internal.NativeProtocol.getExceptionFromErrorData(NativeProtocol.java:811)
      at com.facebook.share.internal.ShareInternalUtility.handleActivityResult(ShareInternalUtility.java:169)
      at com.facebook.share.internal.ShareInternalUtility$3.onActivityResult(ShareInternalUtility.java:261)
      at com.facebook.internal.CallbackManagerImpl.onActivityResult(CallbackManagerImpl.java:91)
      at android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:160)
  </code></pre>
  
  <p>Any idea about what can be failing?</p>
  
  <p>This are some relevant code snippets:</p>
  
  <pre><code> facebookCallbackManager = CallbackManager.Factory.create()
      if (ShareDialog.canShow(ShareLinkContent::class.java)) {
          val url = "https://www.example.com"
          url?.let {
              val shareUri = it.toUri()
              val content = ShareLinkContent.Builder().setContentUrl(shareUri).build()
              val dialog = ShareDialog(this)
              dialog.registerCallback(facebookCallbackManager, object : FacebookCallback&lt;Sharer.Result&gt; {
                  override fun onSuccess(result: Sharer.Result?) {
                      Timber.i("Success on Facebook share")
                  }
  
                  override fun onCancel() {
                      Timber.i("Facebook cancelled")
                  }
  
                  override fun onError(error: FacebookException?) {
                      Timber.e(error, "facebook  share failed")
                  }
              })
              dialog.show(content)
  </code></pre>