Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Error {"errorMessage":Facebook Error:Error occurred in dialog's operation"} with AppInvite #307

Closed
learningfun1234 opened this issue Aug 29, 2016 · 4 comments

Comments

@learningfun1234
Copy link

Hello,

I am trying to use appInvite as shown below and getting following error: {"errorMessage":Facebook Error:Error occurred in dialog's operation"}.

Can you please help?

Thanks!

$scope.inviteFriends = function() {
console.log("Sending invite");
var fbOptions={
url: "https://fb.me/998656290231725",// App link that you got from facebook
picture:"https://placehold.it/150x150" // Link to any image on the web
};
facebookConnectPlugin.appInvite(fbOptions,
function(postId){
alert("success");
alert(postId);
},
function(error){
alert("failure");
alert(JSON.stringify(error));
}
);
}

@Mcoseo
Copy link

Mcoseo commented Dec 23, 2016

Did you ever find a solution for your problem?

@marcscherer
Copy link

Got the same issue.

@marcscherer
Copy link

marcscherer commented May 7, 2017

which cordova version do you use?

Have you tried the newest version of this plugin (1.8)? It seems something happened inside the facebook sdk:

 private void executeAppInvite(JSONArray args, CallbackContext callbackContext) {
 ...
        if (AppInviteDialog.canShow()) {
            AppInviteContent.Builder builder = new AppInviteContent.Builder();
            builder.setApplinkUrl(url);
            if (picture != null) {
                builder.setPreviewImageUrl(picture);
            }

            showDialogContext = callbackContext;
            PluginResult pr = new PluginResult(PluginResult.Status.NO_RESULT);
            pr.setKeepCallback(true);
            showDialogContext.sendPluginResult(pr);

            cordova.setActivityResultCallback(this);
            appInviteDialog.show(builder.build());
        } else {
            callbackContext.error("Unable to show dialog");
}

@peterpeterparker
Copy link
Collaborator

Closed, appInvite doesn't exist anymore

#645

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants