Is there any way to search public objects by their fields? For example:
https://graph.facebook.com/search?q=conference&type=event&fields=venue
Will get me all events matching conference and show their locations. Is there a way to filter for events in San Francisco?
I've tried something like:
https://graph.facebook.com/search?q=conference&type=event&fields=venue¢er=37.76,-122.427&distance=1000
but it doesn't seem to have any effect.
I also checked this. There is no any way to search in fields. only event search will work for TITLE of events only by Facebook and not in description also. There is get url by latitude longitude but this also not working from fb. i dont know when they will solve this issues.
https://graph.facebook.com/search?q=conference&type=event&fields=venue¢er=37.76,-122.427&distance=1000
Related
Using facebook graph API, is it possible to make a search that would return a list of all events in my city, where most (say >50%) of the attendees are within my age range (say born between 1995-2000?)
No, you can't!
What you could do is, fetch all the events in the city, do a loop and check the data you need. I haven't tried to fetch attendees information but i think it is impossible until the user has approved your app.
But #luschn was wrong here. You actually can search events by city.
With a simple graph api search like this: search?q=cityname&type=event
It will search all the event names with that city name in it.
But keep in mind that not all the events are displayed there. You could also do what #luschn recommended but it will take a lot of time to go through all the pages and their events.
If you're trying to build an app that would show nearest events then it's pointless. Theres one website (https://www.minek.ee/tartu). It's in my mother tongue but you can use the search to search events outside of Estonia. I bet that this website uses the same tactic to fetch the events but they are doing the fetching in background while displaying you all the fetched events one by one.
Still, this app doesn't have much traffic so i think there's no point to build anything like this because people really aren't interested in this. I know that i shouldn't give out opinions but i'm pretty sure that building this is just waste of time. Why?? Because i've already built one and it wasn't worth the time.
I haven't had much luck in finding something that can get me going in finding a solution.
Basically I have a modelform that I use to create events. In that model I have a person field in which its a manytomany value. What I want to do is to have a search box in which I can start typing in a name and the results keep decreasing based on additional characters I enter.
How could I possibly implement that search box functionality?
I'm able to pre-populate some of those objects but I want to dynamically query based on the name entered in the search box.
Have a look at django-selectable.
It's very clean and works with JQuery
I want to make a request to search for 'customized' things, like: Restaurants nearby (see screenshot here)..
Another example is: Music my friends like, in the Graph API explorer, if I query music, I just get what I like, not my friends'. Any tip? tks.
me/friends?fields=music
will give you the music interests of your friends
and for nearby restaurants you will have to execute a complex query like
search?q=cafe&type=place¢er=37.76,-122.427&distance=1000
Refer to this page for search types
I'm looking to make something similar to the location autocomplete in Facebook's "Create Event" page. It gives location name, address, and number of check-ins. Do you know how is it done? Because the Places table does not have any field for address and nubmer of checkins.
https://developers.facebook.com/docs/reference/fql/place/
I was going to use Factual, but after some trial and error, found out that facebook is more comprehensive.
Try this query. It ensures that the checkins field is also returned as part of the search request.
https://graph.facebook.com/search?q=coffee&type=place¢er=37.76,-122.427&distance=1000&fields=location,name,id,checkins
There is a graph place search API.
https://graph.facebook.com/search?q=coffee&type=place
I'm starting to use the Graph API to get my notifications, and in the REST interface, they had the object_id field. I used this to get the notification objects' id to then query the Graph for more information.
The Graph API object does not include this information.
Example of what I want to do:
Get user's notifications JSON object.
Grab single item
Identify if this item supports commenting/liking
Display comments and number of likes for that item
if user can comment or like item, display buttons for this
my process:
call me/notifications/?include_read=1
is pretty easy to do.
I can identify if the object refers to a group, event, random application, post, or photo using the URL. I know that posts, likes, photos and others support commenting/likes so I have a way of doing this, though it involves parsing the link attribute of the item
this is what I need help with. I can get the id of the object by parsing the link, but I don't get the full object some times using this. For example, to post on a comment, you need to have USERID_COMMENTID and the link only has the COMMENTID in this form http://www.facebook.com/USERNICKNAME/posts/COMMENTID
I also need help with this. I guess some fb objects can't been liked via the graph?
any help would be great!
The notification FQL table, which also replaced the REST notifications.get API, still has an object_id column. That's the closest thing that exists to what you're asking for. It doesn't look like the Graph API call is documented to have the object_id field unfortunately.