Facebook graph api /user does not return gender, other public profile bits -
Facebook graph api /user does not return gender, other public profile bits -
trying gender of users particular (public) post. can list of app-specific-user-ids of liked post, when query profiles, first , lastly name:
/v2.0/10203862301234567  {u'first_name': u'john',  u'id': u'10203862301234567',  u'last_name': u'doe',  u'link': u'https://www.facebook.com/app_scoped_user_id/10203862301234567/',  u'name': u'john doe'}    even if specify fields, still not gender back:
/v2.0/10203862301234567?fields=gender  {u'id': u'10203862301234567'}    am doing wrong?
it's not lack of gender, can navigate (logged in personal account) public post , click through see total public profile, includes age/gender/location/etc.
many thanks
i'm having same problem.
i can not gender directly.
and can not username , url of profile.
this api 2.0 appears incomplete. basic things lost.
but managed gender indirectly, through utilize of array. see below.
// graph api request user   info  $request = new facebookrequest( $session, 'get', '/me' );   $response = $request->execute();   // response   $graphobject = $response->getgraphobject()->asarray(); echo 'sex:'.$graphobject['gender'];    try this. work me.
 facebook facebook-graph-api 
 
Comments
Post a Comment