question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Open facebook Messenger Android error: Some dialogs are only supported starting API 14

See original GitHub issue

Hi everyone!

I’m opening a Facebook Messenger dialog with the following code:

MessageDialog.canShow(this.state.messageContent).then(function(canShow) {
       return MessageDialog.show(tmp.state.messageContent);
    }).then(function(result) {

      if (typeof result == "undefined")
        return;

      if (result.isCancelled) {
        alert('Share operation was cancelled');
      } else {
        alert('Share was successful with postId: ' + result.postId);
      }
    },
    function(error) {
      alert('Share failed with error: ' + error);
    }
  );

This works fine on Android 4, but not on Android 6. I get the following error message: “Share failed with error. Error: Unable to show the provided content via the web or the installed version of the Facebook app. Some dialogs are only supported starting API 14.”

The latest version of the Facebook app is installed on the device and I’m using the latest facebook SDK (4.17).

Any help or fix would be greatly appreciated.

Many thanks.

Raphael

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
RaphArbuzcommented, Nov 18, 2016

No one has a clue? Am I not posting in the right place? Any comment would help a lot. Many thanks!

0reactions
RaphArbuzcommented, Nov 28, 2016

I think this is part of https://github.com/facebook/react-native-fbsdk will check how I can help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Open facebook Messenger Android error: Some dialogs are ...
I'm opening a Facebook Messenger dialog with the following code: MessageDialog.canShow(this.state.messageContent).then( function(canShow) { ...
Read more >
share sdk can not call native fb app - Meta for Developers
I'm using share dialog to share a photo but not every device can open native fb app. some can share normally, but some...
Read more >
Android - Sharing - Meta for Developers
Sharing on Android. This guide explains how to enable users of your Android app to share from your app to Facebook. When someone...
Read more >
Changes to our Developer Offerings - Meta for Developers
App Invites: App Invites will no longer be supported starting with Facebook SDK version 4.28 and above. Previous versions of the SDK can...
Read more >
Getting Started - Facebook SDK for Android - Documentation
Quick Start · Get Your App ID · Get Your Client Token · Understand the Advertising ID Permission · Android Studio Setup ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found