How can I take two 1st degree connections and get the distance between them, to see if they are connected to one another.
So far I’ve managed to get the 1st degree connections list of the authorized user, but I’m issues with the distance.
Thank you.
You can only directly determine the distance to an arbitrary user from the current user via the API using the
relation-to-viewer:(distance)field.You would need to get connection A to log in and pull that field for connection B to determine the distance.