Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I count the total friends of a Facebook user by uid?

How can I count the total friends of a Facebook user by uid?

like image 419
fajars Avatar asked Aug 20 '10 01:08

fajars


People also ask

How do I get friend count on Facebook API?

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.

How can we tell if two users on Facebook are best friends?

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.

How do I see my list of friends on Facebook?

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.

Is the Facebook API free?

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.

How do I see my total number of friends on Facebook?

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.

What happens if user-a is friends with user-B?

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:

What does “other people you may know” mean on Facebook?

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.

How do I hide my Facebook friends list from other users?

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".


1 Answers

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.

like image 159
Scott Christopher Avatar answered Oct 15 '22 17:10

Scott Christopher