How can I get the facebook friends_count of a user profile via graph API 2.2? -
How can I get the facebook friends_count of a user profile via graph API 2.2? -
in of profiles count of actual friends public, there seems no obvious way figure via graph api.
if access via /user.id/friends?access_token= whole friends list if friends using facebook app too. (see get facebook friends graph api v.2.0 ). not need friends, need count.
there possibilty via fql:
facebook.com/fql?q=select friend_count user username="<username>"
but leads because in future fql not supported anymore.
the 3rd possibilty scrape whole page. create facebook mad , not efficient (a fb site has ~400kb).
does know possiblity/trick friends_count of user on facebook attribute public ?
thanks suggestions.
you cannot friend count of user, can value user authorized right now:
/me/friends
there summary.total_count
field in result.
you need user_friends
permission access token well.
btw, scraping not allowed: https://www.facebook.com/apps/site_scraping_tos_terms.php
facebook facebook-graph-api web-scraping facebook-fql
Comments
Post a Comment