Reputation: 3101
when I perform this query:
search?q=fuckin&type=place¢er=50.9305992,6.9384799&distance=1000&limit=2000&fields=id,name
i'd expect this page to be in the results: 686513714751273
Name: "Fuckin' Monday"
but its not. even if I leave the q= empty and put latitide/longitude right on the event with a radius of 2000 it doesn't find it. does it have to do with the "fuckin" and fb thinks its inappropriate? But then why does a direct query for the page ID work?
Upvotes: 0
Views: 92
Reputation: 1057
Are you looking for the Facebook Page of a place ? Or for an actual Place object ?
For me it works with a Page for type. (HTTP Encoded)
graph.facebook.com/search?q=fuckin%27%20monday&type=page&limit=2000&fields=id,name¢er=50.9305992,6.9384799&distance=1000
OR (HTTP Encoded)
graph.facebook.com/search?q=fuckin&type=page&limit=2000&fields=id,name¢er=50.9305992,6.9384799&distance=1000
So you should specify in the Type the object type, not the Facebook Page type. If that was your intention. (since your Question title indicates an actual page)
Output example :
{
"data": [
{
"id": "293987407372110",
"name": "Fuckin' Monday Madrid"
},
{
"id": "686513714751273",
"name": "Fuckin' Monday Köln"
},
{
"id": "159859830745544",
"name": "Metal Fuckin' Mondays"
},
{
"id": "137862186385028",
"name": "Fuckin' Monday München"
},
{
"id": "304288229704190",
"name": "Fuckin' Monday Lille"
},
{
"id": "275769749221137",
"name": "Fuckin Mondays"
},
{
"id": "608070615956303",
"name": "Fuckin' Monday Berlin"
},
{
"id": "340716655944732",
"name": "Fuckin' Mondays"
}
}
Note : If you are actually looking for a place my answer is invalid.
EDIT 1 : Now I modified according to your comments with Event
graph.facebook.com/search?q=fuckin' monday&type=event&limit=2000¢er=50.9305992,6.9384799&distance=1000
Output is now
{
"data": [
{
"name": "FUCKIN' MONDAY",
"start_time": "2015-12-28T22:30:00+0100",
"end_time": "2015-12-29T22:30:00+0100",
"timezone": "Europe/Berlin",
"id": "328336493920924"
},
{
"name": "FUCKIN' MONDAY",
"start_time": "2015-12-28T22:30:00+0100",
"end_time": "2015-12-29T22:30:00+0100",
"timezone": "Europe/Berlin",
"location": "Citrus",
"id": "266920333408256"
},
{
"name": "FUCKIN' MONDAY",
"start_time": "2015-12-28T22:30:00+0100",
"end_time": "2015-12-29T22:30:00+0100",
"timezone": "Europe/Berlin",
"id": "218674224902426"
},
{
"name": "Metal Fuckin' Monday at Beerland with Eukaryst, WOB, Id, and Cathexis!!",
"start_time": "2015-09-07T21:00:00-0500",
"timezone": "America/Chicago",
"location": "Beerland, Texas",
"id": "412093375666047"
},
{
"name": "FUCKIN' MONDAY: VERSCHOLLEN IM HK!",
"start_time": "2015-07-27T21:30:00+0200",
"end_time": "2015-07-28T21:30:00+0200",
"timezone": "Europe/Berlin",
"location": "zum hinteren Kreuz // HK Ulm",
"id": "147966178716108"
},
{
"name": "★ ♥ FUCKIN' MONDAY INTERNATIONAL PARTY @ Independance Club!",
"start_time": "2015-07-13T23:45:00+0200",
"end_time": "2015-07-15T05:30:00+0200",
"timezone": "Europe/Madrid",
"location": "Fuckin' Monday Madrid",
"id": "1413329865620567"
},
{
"name": "★ ♥ FUCKIN' MONDAY INTERNATIONAL PARTY @ Independance Club!",
"start_time": "2015-07-13T23:45:00+0200",
"end_time": "2015-07-15T05:30:00+0200",
"timezone": "Europe/Madrid",
"location": "Fuckin' Monday Madrid",
"id": "725461987568076"
},
{
"name": "Fuckin' Monday",
"start_time": "2015-07-13T22:30:00+0200",
"end_time": "2015-07-16T22:30:00+0200",
"timezone": "Europe/Berlin",
"location": "Roonburg",
"id": "310759625778698"
},
{
"name": "FUCKIN' MONDAY - jeden Montag im Ruby!",
"start_time": "2015-07-13T22:30:00+0200",
"end_time": "2015-07-14T22:30:00+0200",
"timezone": "Europe/Berlin",
"id": "1546763038913578"
},
{
"name": "FUCKIN' MONDAY - jeden Montag im Ruby!",
"start_time": "2015-07-13T22:30:00+0200",
"end_time": "2015-07-14T22:30:00+0200",
"timezone": "Europe/Berlin",
"id": "649921368488042"
},
{
"name": "FUCKIN' MONDAY - jeden Montag im Ruby!",
"start_time": "2015-07-13T22:30:00+0200",
"end_time": "2015-07-14T22:30:00+0200",
"timezone": "Europe/Berlin",
"id": "394242367414488"
},
{
"name": "FUCKIN' MONDAY - jeden Montag im Ruby!",
"start_time": "2015-07-13T22:30:00+0200",
"end_time": "2015-07-14T22:30:00+0200",
"timezone": "Europe/Berlin",
"location": "Ruby Dance Club",
"id": "417152511783993"
},
{
"name": "FUCKIN' MONDAY - jeden Montag im Ruby!",
"start_time": "2015-07-13T22:30:00+0200",
"end_time": "2015-07-14T22:30:00+0200",
"timezone": "Europe/Berlin",
"id": "502362173237762"
},
{
"name": "✦ MEET & DANCE: Learn Salsa, Merengue, Bachata & International Get-Together ✦",
"start_time": "2015-07-13T21:45:00+0200",
"end_time": "2015-07-15T00:30:00+0200",
"timezone": "Europe/Madrid",
"location": "Fuckin' Monday Madrid",
"id": "841707392549858"
},
{
"name": "✦ MEET & DANCE: Learn Salsa, Merengue, Bachata & International Get-Together ✦",
"start_time": "2015-07-13T21:45:00+0200",
"end_time": "2015-07-15T00:15:00+0200",
"timezone": "Europe/Madrid",
"location": "Fuckin' Monday Madrid",
"id": "219024774934814"
},
{
"name": "FUCKIN' MONDAY: Fuckin' Exams Edition!",
"start_time": "2015-07-13T21:30:00+0200",
"end_time": "2015-07-14T21:30:00+0200",
"timezone": "Europe/Berlin",
"location": "zum hinteren Kreuz // HK Ulm",
"id": "568944169809566"
},
{
"name": "FUCKIN' MONDAY: Fuckin' Exams Edition!",
"start_time": "2015-07-13T21:30:00+0200",
"end_time": "2015-07-14T21:30:00+0200",
"timezone": "Europe/Berlin",
"location": "zum hinteren Kreuz // HK Ulm",
"id": "1447770675474865"
},
{
"name": "FUCKIN' MONDAY: VERSCHOLLEN IM HK!",
"start_time": "2015-07-13T21:30:00+0200",
"end_time": "2015-07-14T21:30:00+0200",
"timezone": "Europe/Berlin",
"location": "zum hinteren Kreuz // HK Ulm",
"id": "543891975651073"
},
{
"name": "FUCKIN' MONDAY: Fuckin' Exams Edition!",
"start_time": "2015-07-13T21:30:00+0200",
"end_time": "2015-07-14T21:30:00+0200",
"timezone": "Europe/Berlin",
"location": "zum hinteren Kreuz // HK Ulm",
}
}
Seems that the locations are still ignored because I get it from across the world.
https://developers.facebook.com/bugs/122501314556518/?search_id
Upvotes: 1