facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 906 forks source link

ShareDialog returns API ERROR only on Android #769

Open SaruwatariSagittario opened 4 years ago

SaruwatariSagittario commented 4 years ago

🐛 Bug Report

ShareDialog returned API ERROR message only on Android, while in iOS its working fine. Also previously the feature working fine on both platform.

Screen Shot 2020-06-19 at 15 09 15

To Reproduce

Tried to use Share Dialog.

Expected Behavior

Shows Share Dialog

Code Example

ShareDialog.canShow(shareLinkContent).then(
function(canShow) {
        if (canShow) {
            return ShareDialog.show(shareLinkContent);
        }
    }
).then(
    function(result) {
        if (result.isCancelled) {
            console.log('Share cancelled');
        } else {
            console.log('Share success with postId: ' +
                result.postId);
        }
    },
    function(error) {
        console.log('Share fail with error: ' + error);
    }
);

Environment

"react": "16.9.0", "react-native": "0.61.5", "react-native-fbsdk": "1.1.1"

SaruwatariSagittario commented 4 years ago

Hi, any update regarding this issue? does the repo still active?