How can I count the total friends of a Facebook user by uid
?
You need to generate token (by clicking on Get Token you will get it) with data you want from facebook API, need to select friends option to get the friend count.
Simply, look for markers of friendship, give each activity a weight, total up the "friend score", and appropriate by the age of the friendship (if you're looking for a "lifetime" score). You could look at different timeframes, such as "recent best friends", etc.
Log into Facebook on a computer. From your News Feed, click Friends in the left menu. If you don't see it, click See More.
In the newest version of the Graph API (v2. 9), we're announcing features that simplify development, making it even easier to build apps and experiences with Facebook. We're providing free access to over 140 million places around the world, the same data that powers Facebook, Instagram, and Messenger.
Login to your facebook and click on Friends tab. the total number of friends on facebook will be shown there. You need to go to your profile and scroll down between your photos and your friendship lists,you will see your total Berlings it appears in my profile.
If user-a is friends with user-b in the above request, the response will contain the User object for user-b. If they are not friends, it will return an empty dataset. An array of User objects representing the person's friends with this additional field:
It is showing you the number of mutual friends with the person who is a suggested friend. Rahul is also friends with 7 of your friends. The “Other people you may know”, is a list of Other people you may know.
You can only do this by hiding your friends list. There are controls that let you hide it from all friends or just the ones you choose. Go to the Friends tab on your timeline (at the top: Timeline, About, Photos, Friends). Click on the pencil icon just to the top right of this friends list and select "Edit Privacy".
There is a friend_count
field against the user
table that you can query.
SELECT friend_count FROM user WHERE uid = me()
Just replace me()
with the UID of the user that you want to query.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With