简体   繁体   中英

Facebook graph-api android

I am trying to request several fields from graph api.

Using the code below overwrites previous values.

params.putString("fields", "id");
params.putString("fields", "email");
params.putString("fields", "picture");
params.putString("fields", "birthday");

JSONObject json = new JSONObject(mFacebook.request("me",params));

However when I use

params.putStringArray("fields", new String[]{"id", "email", "picture", "birthday"});

produces:

Bundle[{fields=[Ljava.lang.String;@44a04bb8}]

Anyone faced this issue?

Thanks in advance.

使用:params.putString(“fields”,“id,email,picture,birthday”);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM