C
Two questions:Are you running a recent version of the tutorial? I searched GitHub for the code posted, and found nowhere (not at all) friendsmash_complete neither friendsmash_incomplete). If your code is an older revision, it is possible that the API has changed.Your test user has allowed so your app how the Friends Smash app (I don't know what it is, you don't even have one, but I strongly believe you do)? And if so, you've posted some score before trying to read them?I decided to test the tutorial URL, and by passing my User ID and a https://developers.facebook.com/tools/explorer?method=GET&path=1331462558?fields=id,name , also received as an answer false. I also tried to post a score to see if it solved the problem (making a POST with mine fbid, access_token and one score), and I received the following answer: "No user with fbid 1331462558 found". I searched the rest of the tutorial a means of registering me, but I did not find.(sing) https://apps.facebook.com/friendsmashsample , what Looks like Friend Smash sample, but solved not giving permission to send me e-mail or publish in my name just to answer a question in SOPT, sorry!).That is, I believe his reason is returning false is because or you are not registered and/or because you never posted a score. Your parameters are correct (if otherwise you would see an error message) and are valid (if otherwise you would see null), hence I conclude that false is part of the site logic friendsmash.com Even, I don't think it's anything wrong that you've done...In my opinion, these are the most likely causes of your error (a 2nd more than the 1st), because:An initial question is whether this url is created automatically, as the example already brings the http://www.friendsmash.com/ , but not seveni this when I created the app on Facebook developer. This app already exists on Facebook, can this cause conflict?I think it is not necessary (and perhaps not possible) to setate this in this way, because the function of the server according to the tutorial itself is "to post and search scores from your own server to create a scoreboard". O friendsmash.comIf still active, you should do just that without requiring any additional integration of your app with it. Notice the following lines:String currentUserAccessToken = Session.getActiveSession().getAccessToken();
...
String getURL = "http://www.friendsmash.com/scores?fbid=" + currentUserFBID + "&access_token=" + currentUserAccessToken;
When you do that you are giving your User Access Token to him, and how https://developers.facebook.com/docs/facebook-login/access-tokens/#portabletokens , that's all that friendsmash.com need to act on your user's name (i.e. read and modify data from it). Needless to say that this is a security issue (though the token is passed via GET without the use of HTTPS), but in the context of the specific problem means that there is nothing missing for the Friend Smash website to act.Note: the token gives as much access as it had when it was created; for example, when I did that test earlier, I assured that the token would only be valid for 60 minutes and did not give any permission beyond the most basic (see my name, photo and list of friends). In your case, I think you are extracting the granted token to your app and passing it the friendsmash.comso that it will have the same permissions that your app has. In this specific case, I don't think there's anything malicious, but in practice it's good to be very careful what a token contains before sharing it with other websites (because this directly affects privacy of your users/customers).