I've been unable to get distance sort and filtering working at all. I'm requesting sort by distance and that I only want first and second degree connections.
What I get includes third and out-of-network connections and its not sorted.
Has anybody succeeded in this? Here's the URL and result, ("xxx..." replaces good but personally identifiable information)
URL
------
people-search:(people:(id,first-name,last-name,public-profile-url,site-public-profile-request:(url),relation-to-viewer:(distance)))?current-company=true&sort=distance&company-name=xxx+xxx+xxx&facet%3Dnetwork%2CF%2CS&start=0&count=4&format=json
Which is:
-------------
people-search:(people:(id,first-name,last-name,public-profile-url,site-public-profile-request:(url),relation-to-viewer:(distance)))?current-company=true&sort=distance&company-name=xxx xxx xxx&facet=network,F,S&start=0&count=4&format=json
Returns (extracted from json):
------------
'firstName' => '', 'id' => 'Txxxxxxxxx', 'lastName' => 'Private', 'relationToViewer' => 'distance' => -1
'firstName' => '', 'id' => 'Rxxxxxxxxx', 'lastName' => 'Private', 'relationToViewer' => 'distance' => -1
'firstName' => 'Mike', 'id' => '6xxxxxxxxx', 'lastName' => 'T.', 'relationToViewer' => 'distance' => 3, 'publicProfileUrl' => 'http://www.linkedin.com/pub/mike-t/xx/xx/xxx'
'firstName' => '', 'id' => 'kxxxxxxxxx', 'lastName' => 'Private', 'relationToViewer' => 'distance' => -1
- Log in to post comments
Hi Simon,
I am not able to replicate this myself and I have tested it a number of ways with different users / company names. Can you post the full request headers / body you are sending to our servers? Maybe something is being encoded incorrectly by your OAuth library.
-Jeremy