Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova : Facebook plugin : showDialog apprequests

I installed last month the Facebook plugin for Cordova. Last week I implemented the showDialog to let people invite their friends to the app using "apprequests" method. It worked when I tried with two friends, they got the invites.

Today, trying again, everything works fine - except that the people I invite never get any notification.

Here is the code of the call (using NGCordova's wrapper) :

$cordovaFacebook.showDialog({ method: "apprequests", message: "Come on man, check out my application." })
    .then(function(success) {
        console.log("success", success);
        // success
    }, function (error) {
        console.log("error", error);
        // error
    });

The console shows success :

success Object {to: Array[3], request: "id_of_request"}
    request: "id_of_request"
    to: Array[3]
        0: "user_id_1"
        1: "user_id_2"
        2: "user_id_3"
        length: 3

The user ids were good also. But no notifications for them on their Facebook account.

What I tried so far :

  • Reinstalling Facebook plugin
  • Create another Facebook app and use its credentials instead
  • Installing the latest version of NGCordova (unlikely to help, is simply a wrapper...)
  • Using other methods, like "feed", and post to my wall - it works.

Taking NGCordova out of the picture, using basic function behave the same :

facebookConnectPlugin.showDialog({ method: "apprequests", message: "Come on man, check out my application." }, function(success) {
        console.log(success);
    }, function(error) {
        console.log(error);
    });

This triggers success as well and still no notifications.

Thanks ahead for any help, I think I'm out of ideas...

like image 645
Jeremy Belolo Avatar asked Jan 26 '15 18:01

Jeremy Belolo


1 Answers

Just publish your app in Facebook Developers , under the Status & Review , make it live > "Yes"

like image 158
Ivan Chernykh Avatar answered Sep 20 '22 13:09

Ivan Chernykh