Is field expansion supported in Facebook's Android SDK? where can I find an example?
There is great documentation on field expansion for the Graph APi. However, I cannot find any documentation for the android-sdk-3. Is it supported?
The problem starts when you want to do the following:
/me?fields=name,birthday,photos.limit(10).fields(id, picture)
In Facebook android SDK it seems that adding the parameters as a string doesn't work
E.g.
request = Request.newGraphPathRequest(session, "me/friendlists", new Request.Callback() {
public void onCompleted(Response response) ...
}
Bundle parameters = new Bundle();
parameters.putString("fields","members.fields(id)", "list_type");
request.setParameters(parameters);
The Android SDK is used to make Graph API queries
You make the API calls with the same parameters and same return values as when making raw HTTP calls to graph.facebook.com or using the Graph API Explorer tool -
Just change your existing calls to the API to include the additional fields you want, following the syntax in the Field Expansion documentation, e.g. if you're currently calling
/me/friendsyou can change it to/me/friends?fields=name,birthday