Fetch info about a Facebook group's members -
my facebook group has more 2000 members, using following code i'm able 25 members , not able fetch data,
- user_id
- first_name
- last name
and not able fetch
- phone
- gender
birthday etc
$request = new facebookrequest( $session, 'get', '/group_id/members', array( 'fields' => 'id,first_name,last_name,email,gender,birthday' ) ); $response = $request->execute(); $graphobject = $response->getgraphobject();
when write limit parameter(2000) in code getting following error
please reduce amount of data you're asking for, retry request.
do error message tells , reduced amount. instead, use paging members: https://developers.facebook.com/docs/graph-api/using-graph-api#paging
btw, you can email , birthday of people authorized app correct permissions (email , user_birthday), , can´t phone number @ all. not allowed store or use data of user anyway without specific permission/authorization.
also, can´t more 5000 members, see thread more information: https://stackoverflow.com/questions/26990562/how-do-i-bypass-the-facebook-graph-api-bug-and-get-more-than-5000-members-from-a
...but don´t accepted answer suggests, because scraping - not allowed on facebook.
here bug report: https://developers.facebook.com/bugs/267362886791339/
Comments
Post a Comment