sromku / android-simple-facebook

[Deprecated] Simple Facebook SDK for Android
Other
879 stars 349 forks source link

like gaming app, how to invite my freinds to play my game in facebook notificatin through sromku library? I have used invitelistener it calls onComplete method but freinds did not get notification or message #400

Open Mayank1904 opened 8 years ago

Mayank1904 commented 8 years ago
SimpleFacebook mSimpleFacebook; 
mSimpleFacebook.invite("I invite you to use this app", onInviteListener, null);

OnInviteListener onInviteListener = new OnInviteListener() {
    @Override
    public void onException(Throwable throwable) {

    }

    @Override
    public void onFail(String reason) {

    }

    @Override
    public void onComplete(List<String> invitedFriends, String requestId) {
        Log.i(Constants.TAG, "Invitation was sent to " + invitedFriends.size() + " users with request id " + requestId);
    }

    @Override
    public void onCancel() {
        Log.i(Constants.TAG, "Canceled the dialog");
    }

/*
 * You can override other methods here:
 * onFail(String reason), onException(Throwable throwable)
 */
};