ユーザー グループを取得して一覧表示したいのですが、Facebook からグループを取得することはできますが、取得できません。
*Successful Login
*fetch friend list
*i have also allowed the permission user_groups for fetching user groups
ここで、ユーザーグループを取得するためにこのようにしています
AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(facebook);
mAsyncRunner.request("me/groups", params,
new GroupsRequestListener());
public class GroupsRequestListener extends BaseRequestListener {
@Override
public void onComplete(final String response, final Object state) {
dialog.cancel();
Log.v("response", response);
Intent myIntent = new Intent(getApplicationContext(),
GroupsList.class);
myIntent.putExtra("API_RESPONSE", response);
startActivity(myIntent);
}
public void onFacebookError(FacebookError error) {
dialog.cancel();
Toast.makeText(getApplicationContext(),
"Facebook Error: " + error.getMessage(), Toast.LENGTH_SHORT)
.show();
}
}
しかし、ログに次のような応答がありました
06-15 07:43:19.563: V/response(645): {"error":{"message":"(#100) Unknown fields: location,birthday","type":"OAuthException","code":100}}
「me/friends」パラメーターは、フレンド リストの取得に使用できます。パラメータ「me/groups」はユーザーグループを取得するのに適していますか?