FBSDKGraphRequest Response Issue - Not getting scores

前端 未结 4 1262
小蘑菇
小蘑菇 2021-01-27 03:19

I am using following code to get the game score of my facebook friend.

    -(void)GetFriendScore
{
    NSMutableDictionary* params =   [NSMutableDictionary dicti         


        
4条回答
  •  孤街浪徒
    2021-01-27 03:58

    param.putString("fields", "user,application,score");
    request = new Request(Session.getActiveSession(), "/me/scores", param , HttpMethod.GET);
    if(request!=null)
    {
        request.setCallback(new Request.Callback()
        {
            public void onCompleted(Response response)
            {
                        if(response!=null)
                        {
                            GraphObject graphObject = response.getGraphObject();
                            if(graphObject==null)
                            {
                                //Enjoy
                            }
    
                        }
            }
        }
    }
    

提交回复
热议问题