Open Vadim-Bulavin opened 7 years ago
Same issue when trying with my profile:
Request:
curl -X GET --header 'Accept: application/json' --header 'Authorization: Facebook AK=ec1665a4-920d-4449-b8a0-49ed374d4290|TK=EAAVXZAYQYTB8BAPaRX2St6VuzljDz5tWwexZCnSOZAAbldFCcA0qIS9BwFwrzuqZChCSqzjiJrDMnomMg2FK0zH2ZA6SLs7ozW5RX1NhFZA8UYv8lLwji2kqodyiB24U9EAj8QYdx9mEBcBEfKNfQjTKSPJmAgFkLwoGxUWQcn7EmXIeKESrZBNnFnJAsRsKYJKCHAnP6WlZAJ0wz42bBch7l3PXaEoVYOEd1jYzR2D51wZDZD' 'https://ppe.embeddedsocial.microsoft.com/v0.7/users/me'
Response:
{
"userHandle": "3vJYpeLwV7M",
"firstName": "Vadim",
"lastName": "Bulavin",
"bio": null,
"photoHandle": "----8oE_4jY-cc8c005b-1a61-42df-bea3-b4caa0bc2f0b",
"photoUrl": "https://sp-ppe.azureedge.net/images/----8oE_4jY-cc8c005b-1a61-42df-bea3-b4caa0bc2f0b",
"visibility": "Public",
"totalTopics": 5,
"totalFollowers": 5,
"totalFollowing": 5,
"followerStatus": "None",
"followingStatus": "None",
"profileStatus": "Active"
}
Request:
curl -X GET --header 'Accept: application/json' --header 'Authorization: Facebook AK=ec1665a4-920d-4449-b8a0-49ed374d4290|TK=EAAVXZAYQYTB8BAPaRX2St6VuzljDz5tWwexZCnSOZAAbldFCcA0qIS9BwFwrzuqZChCSqzjiJrDMnomMg2FK0zH2ZA6SLs7ozW5RX1NhFZA8UYv8lLwji2kqodyiB24U9EAj8QYdx9mEBcBEfKNfQjTKSPJmAgFkLwoGxUWQcn7EmXIeKESrZBNnFnJAsRsKYJKCHAnP6WlZAJ0wz42bBch7l3PXaEoVYOEd1jYzR2D51wZDZD' 'https://ppe.embeddedsocial.microsoft.com/v0.7/users/me/followers?limit=30'
Response:
{
"data": [
{
"userHandle": "3v9gnzwILTS",
"firstName": "Alex",
"lastName": "Test",
"photoHandle": "67564D82-0A9C-4773-B4B2-3A81147BF878",
"photoUrl": "https://sp-ppe.azureedge.net/images/67564D82-0A9C-4773-B4B2-3A81147BF878",
"visibility": "Public",
"followerStatus": "None"
},
{
"userHandle": "3vasrlAHhYf",
"firstName": "Oleg",
"lastName": "Rezhko",
"photoHandle": null,
"photoUrl": null,
"visibility": "Public",
"followerStatus": "Follow"
},
{
"userHandle": "3vJYpeLwV7M",
"firstName": "Vadim",
"lastName": "Bulavin",
"photoHandle": "----8oE_4jY-cc8c005b-1a61-42df-bea3-b4caa0bc2f0b",
"photoUrl": "https://sp-ppe.azureedge.net/images/----8oE_4jY-cc8c005b-1a61-42df-bea3-b4caa0bc2f0b",
"visibility": "Public",
"followerStatus": "None"
}
],
"cursor": null
}
Request:
curl -X GET --header 'Accept: application/json' --header 'Authorization: Facebook AK=ec1665a4-920d-4449-b8a0-49ed374d4290|TK=EAAVXZAYQYTB8BAPaRX2St6VuzljDz5tWwexZCnSOZAAbldFCcA0qIS9BwFwrzuqZChCSqzjiJrDMnomMg2FK0zH2ZA6SLs7ozW5RX1NhFZA8UYv8lLwji2kqodyiB24U9EAj8QYdx9mEBcBEfKNfQjTKSPJmAgFkLwoGxUWQcn7EmXIeKESrZBNnFnJAsRsKYJKCHAnP6WlZAJ0wz42bBch7l3PXaEoVYOEd1jYzR2D51wZDZD' 'https://ppe.embeddedsocial.microsoft.com/v0.7/users/me/following/users?limit=30'
Response:
{
"data": [
{
"userHandle": "3vC_QIk24au",
"firstName": "Igor",
"lastName": "Akvelon",
"photoHandle": null,
"photoUrl": null,
"visibility": "Public",
"followerStatus": "Follow"
},
{
"userHandle": "3vasrlAHhYf",
"firstName": "Oleg",
"lastName": "Rezhko",
"photoHandle": null,
"photoUrl": null,
"visibility": "Public",
"followerStatus": "Follow"
},
{
"userHandle": "3vJYpeLwV7M",
"firstName": "Vadim",
"lastName": "Bulavin",
"photoHandle": "----8oE_4jY-cc8c005b-1a61-42df-bea3-b4caa0bc2f0b",
"photoUrl": "https://sp-ppe.azureedge.net/images/----8oE_4jY-cc8c005b-1a61-42df-bea3-b4caa0bc2f0b",
"visibility": "Public",
"followerStatus": "None"
}
],
"cursor": null
}
Expected: number of users in the lists matches totalFollowers and totalFollowing fields in step 1.
Actual: totalFollowers = 5
, totalFollowing = 5
, but followers list contains 3 items and following list contains 3 items.
I have investigated this and found there is a bug on the server side. The bug is manifested if you delete a user. When a user is deleted, the server does not correctly remove that user from the count of followers and the count of followings for other users that the deleted user was following/follower. As a result, the number you see may be higher than the actual list. I have a new bug listed on our server side bug tracker.
Description: number of users in followers and following lists do not match the numbers in user profile.
Steps to reproduce:
Request:
curl -X GET --header 'Accept: application/json' --header 'Authorization: Google AK=ec1665a4-920d-4449-b8a0-49ed374d4290|TK=ya29.GluqBN41h0Hy3E6hzz6GfUJBBppU8YgFygOlcZvBlt1Xj9Ttog2ysglxrVy1d1fRXLak6szyjCyMF6cBnq8PI9bEE_lQGe31_9vocuX_tTouiiX9dWgb2EPKshCy' 'https://ppe.embeddedsocial.microsoft.com/v0.7/users/3vC_QIk24au'
Response:
Request:
curl -X GET --header 'Accept: application/json' --header 'Authorization: Google AK=ec1665a4-920d-4449-b8a0-49ed374d4290|TK=ya29.GluqBN41h0Hy3E6hzz6GfUJBBppU8YgFygOlcZvBlt1Xj9Ttog2ysglxrVy1d1fRXLak6szyjCyMF6cBnq8PI9bEE_lQGe31_9vocuX_tTouiiX9dWgb2EPKshCy' 'https://ppe.embeddedsocial.microsoft.com/v0.7/users/3vC_QIk24au/followers?limit=30'
Response:
Request:
curl -X GET --header 'Accept: application/json' --header 'Authorization: Google AK=ec1665a4-920d-4449-b8a0-49ed374d4290|TK=ya29.GluqBN41h0Hy3E6hzz6GfUJBBppU8YgFygOlcZvBlt1Xj9Ttog2ysglxrVy1d1fRXLak6szyjCyMF6cBnq8PI9bEE_lQGe31_9vocuX_tTouiiX9dWgb2EPKshCy' 'https://ppe.embeddedsocial.microsoft.com/v0.7/users/3vC_QIk24au/following'
Response:
Expected: number of users in the lists matches
totalFollowers
andtotalFollowing
fields in profile. Actual:totalFollowers = 4
,totalFollowing = 0
, but followers list contains 2 items and following list contains 0 items.P.S. After some investigation we suspect that the numbers become inconsistent when profiles of some followers / following users are deleted.