I have downloaded facebook-android-sdk-3.14.1.zip and am trying to get the examples working. I get stuck on the FriendPickerFragment that never returns a list of friends. I can log onto Facebook ok (again using the Facebook code), both using the 'Scrumptious' example and my version of it by followiing https://developers.facebook.com/docs/android/getting-started
I found that my requests were only going with public profile permission e.g.
{Session state:OPENED, token:{AccessToken token:ACCESS_TOKEN_REMOVED permissions:[public_profile]}, appId:520510648055719}
I took code from Facebook friend picker SDK sample not working Android, that would add the user_friends permission and see that Session was now:
{Session state:OPENED, token:{AccessToken token:ACCESS_TOKEN_REMOVED permissions:[public_profile, basic_info, user_friends]}, appId:520510648055719}
When I traced the code down to RequestAsyncTask.doInBackground the values of requests in :
@Override
protected List<Response> doInBackground(Void... params) {
try {
if (connection == null) {
return requests.executeAndWait();
} else {
return Request.executeConnectionAndWait(connection, requests);
}
} catch (Exception e) {
exception = e;
return null;
}
}
is
{Request: session: {Session state:OPENED, token:{AccessToken token:ACCESS_TOKEN_REMOVED permissions:[public_profile, basic_info, user_friends]}, appId:520510648055719}, graphPath: me/friends, graphObject: null, restMethod: null, httpMethod: GET, parameters: Bundle[{fields=id,name,picture.height(75).width(75)}]}
and I see as a response in onPostExecute(List result) :
[{Response: responseCode: 200, graphObject: GraphObject{graphObjectClass=GraphObject, state={"data":[]}}, error: null, isFromCache:true}]
Could there have been some caching problem earlier that I need to clear first? If so how do I do that?
I have read that Facebook has changed security recently. I have create my Facebook TestUI 'app' and entered the hashKey (I assume all is ok as I can log into Facebook successfully)
Is there something else I should be looking at?
Looking for any and all wisdom on this.
Thanks
Eric