FBSDKGraphRequest Response Issue - Not getting scores

前端 未结 4 1261
小蘑菇
小蘑菇 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 04:13

    How we can do same in android.i have same problem in android i am using following code

    request = new Request(Session.getActiveSession(), "/ "+"FB_ID"+"/scores?fields=user,application,score", 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)
                            {
                                //getting graphObject NULL
                            }
    
                        }
            }
        }
    }
    

    how to resolve this issue

提交回复
热议问题