I have a project where I have to search Facebook for all people in a specific location, and then apply additional filters to the data. My problem and question:
How to get raw data using Graph API?
I know that this is possible using the search box on Facebook itself. Just by typing "All people living in ???" returns a list of people. I could not find such functionality in Facebook Graph-API. Here is what I tried:
I changed some parameters of the standard search request
search?type=user¢er=52.946758,-1.172882&distance=1000search?type=user¢er=Nottingham&distance=1000
and here is what I got:
{
"error": {
"message": "No node specified",
"type": "GraphMethodException",
"code": 100
}
}
Using a similar query with locationinsteadcenter
search?type=user&location=Nottingham&distance=1000search?type=user&location=52.946758,-1.172882&distance=1000search?type=user&q=&location=Nottingham
and received only a confused error that I wrote incorrectly.
{
"error": {
"message": "(#160) Invalid coordinates. Coordinates must contain at least latitude and longitude.",
"type": "OAuthException",
"code": 160
}
}
query .
search?type=user&q=52.946758,-1.172882&distance=1000
{"data": []}
location
search?type=location&q=52.946758,-1.172882
{
"error": {
"message": "(#12) location search is deprecated for versions v2.0 and higher",
"type": "OAuthException",
"code": 12
}
}
, . - , ,
, , .
, ,
API Facebook - ?