microsoft / EmbeddedSocial-iOS-SDK

SDK for interacting with the Microsoft Embedded Social service from inside your iOS app
MIT License
19 stars 11 forks source link

Followers: followers list doesn't reflect changes when a user has been followed #175

Open Vadim-Bulavin opened 7 years ago

Vadim-Bulavin commented 7 years ago
  1. Get followers list of a user:

Request: curl -X GET --header 'Accept: application/json' --header 'Authorization: Facebook AK=ec1665a4-920d-4449-b8a0-49ed374d4290|TK=EAAVXZAYQYTB8BAFwpcsNwKojkPNMrCPWAtozsBBfof9xhcZCpHkyVyKj2MlVlyY31JFWCS182mJ5tucBFGZARZCiZCFPOxzdJMicbJKiuJfZBqBzIOEHoVMhPU3hRXKPktabRPxP4rGSulUn0MXKbMtJQeXKNrlpV6HhawVqx4cEUuvSPAbnOEWJLijMKCZChnmxZAyKFh324lyheF0QlIqMOvi69cCbyFwtB2d8re4XogZDZD' 'https://ppe.embeddedsocial.microsoft.com/v0.7/users/3vC_QIk24au/followers?limit=30'

Response:

{
  "data": [
    {
      "userHandle": "3ui66fSIueT",
      "firstName": "Alan",
      "lastName": "Poe",
      "photoHandle": "----8nzbPSj-e60f0eb5-9613-4553-8424-ca7b4f41306d",
      "photoUrl": "https://sp-ppe.azureedge.net/images/----8nzbPSj-e60f0eb5-9613-4553-8424-ca7b4f41306d",
      "visibility": "Public",
      "followerStatus": "Blocked"
    },
    {
      "userHandle": "3u9JXBSKL_n",
      "firstName": "Vadim",
      "lastName": "Bulavin",
      "photoHandle": "----8oIwZKl-ad210030-de95-4f0a-b65a-a48035156812",
      "photoUrl": "https://sp-ppe.azureedge.net/images/----8oIwZKl-ad210030-de95-4f0a-b65a-a48035156812",
      "visibility": "Public",
      "followerStatus": "None"
    },
    {
      "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
}
  1. Follow user with handle 3u9JXBSKL_n

Request:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Facebook AK=ec1665a4-920d-4449-b8a0-49ed374d4290|TK=EAAVXZAYQYTB8BAFwpcsNwKojkPNMrCPWAtozsBBfof9xhcZCpHkyVyKj2MlVlyY31JFWCS182mJ5tucBFGZARZCiZCFPOxzdJMicbJKiuJfZBqBzIOEHoVMhPU3hRXKPktabRPxP4rGSulUn0MXKbMtJQeXKNrlpV6HhawVqx4cEUuvSPAbnOEWJLijMKCZChnmxZAyKFh324lyheF0QlIqMOvi69cCbyFwtB2d8re4XogZDZD' -d '{
  "userHandle": "3u9JXBSKL_n"
}' 'https://ppe.embeddedsocial.microsoft.com/v0.7/users/me/following/users'

Response: 204 no content

  1. Repeat step 1

Request: curl -X GET --header 'Accept: application/json' --header 'Authorization: Facebook AK=ec1665a4-920d-4449-b8a0-49ed374d4290|TK=EAAVXZAYQYTB8BAFwpcsNwKojkPNMrCPWAtozsBBfof9xhcZCpHkyVyKj2MlVlyY31JFWCS182mJ5tucBFGZARZCiZCFPOxzdJMicbJKiuJfZBqBzIOEHoVMhPU3hRXKPktabRPxP4rGSulUn0MXKbMtJQeXKNrlpV6HhawVqx4cEUuvSPAbnOEWJLijMKCZChnmxZAyKFh324lyheF0QlIqMOvi69cCbyFwtB2d8re4XogZDZD' 'https://ppe.embeddedsocial.microsoft.com/v0.7/users/3vC_QIk24au/followers?limit=30'

Response:

{
  "data": [
    {
      "userHandle": "3ui66fSIueT",
      "firstName": "Alan",
      "lastName": "Poe",
      "photoHandle": "----8nzbPSj-e60f0eb5-9613-4553-8424-ca7b4f41306d",
      "photoUrl": "https://sp-ppe.azureedge.net/images/----8nzbPSj-e60f0eb5-9613-4553-8424-ca7b4f41306d",
      "visibility": "Public",
      "followerStatus": "Blocked"
    },
    {
      "userHandle": "3u9JXBSKL_n",
      "firstName": "Vadim",
      "lastName": "Bulavin",
      "photoHandle": "----8oIwZKl-ad210030-de95-4f0a-b65a-a48035156812",
      "photoUrl": "https://sp-ppe.azureedge.net/images/----8oIwZKl-ad210030-de95-4f0a-b65a-a48035156812",
      "visibility": "Public",
      "followerStatus": "None"
    },
    {
      "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: user with handle 3u9JXBSKL_n has status "Follow". Actual: user with handle 3u9JXBSKL_n has status "None".

sharadagarwal commented 7 years ago

I believe this is a bug on the server side. I've opened an issue to track it in our server repository.

sharadagarwal commented 7 years ago

(this is tracked as bug 1272 on the service)