Apprequests Facebook filters don't work on Android
I am trying to show an application request dialog that displays a list of friends who are not users of my application to send invitations. This is how I do it.
Bundle parameters = new Bundle();
parameters.putString("message", "Send Request");
String filters = "app_non_users";
parameters.putString("filters", filters);
WebDialog.Builder builder = new Builder(context,Session.getActiveSession(), "apprequests", parameters);
// add listener
WebDialog webDialog = builder.build();
webDialog.show();
A dialog box with "Recommended Friends" is displayed here.
These are not the friends I want. I only want non-app users and these are all my friends under the suggested friends heading. If I put facebook ids in the "offers" parameter, it correctly shows those facebook ids by offers, but this "filters" parameter does not work. I also tried adding it as a string array. Am I doing something wrong?
thank
source to share
Let me answer all of this in case anyone else comes across this. This code will work if you are using v2 API. I didn't completely switch to v2, I was working in compatibility mode ( Settings.setPlatformCompatibilityEnabled(true);
) and because of this, the default API call was v1. Changed this and his work like a charm.
source to share
Let me answer this in case anyone else comes across this too. This code will work if you are using v2 API. I didn't completely switch to v2, i was working in compatibility mode (Settings.setPlatformCompatibilityEnabl (true);), and because of this the default API v1. Changed this and its working like a charm.
source to share