I am new to this. I am looking for a way to search user in specific location but it turn out the results come from no where.
I have tried this
/search?q=micheal&type=user&location=New+York
But the results shows people from like India. I wonder why it becomes like that. Each time I refreshing the link it shows the same set of data.
I am using php sdk with app version 2.8.
Please help me. Thanks in advance.
There is no way to search for users by location, you can only search for users by name. That is why people from India show up too. Check out the docs, there is no mention of using the location parameter with the user search, especially not with a location name. Location search is only possible for Places, with latitude/longitude.
Related
I'm currently working on a flutter project and I want to get the user's location and suggest a place for a user. Not restaurants or etc. Given by google API. I want to put my own suggested place to the user
Thank you in Advance
To get the user's location, you might use https://pub.dev/packages/location
With their geolocation, you can query your own suggest dataset and show to the users
I am creating a chatbot using messenger in python but I don't know how to get the geolocation from the facebook user (latitude, longitude). I saw that I had to use graph API but the field status does not seem to work. Would you have a query example? Thanks in advance!
[Update with the current status about how to solve this]
Location Quick reply have been deprecated and removed since end of june 2019.
They're supposed to announce a new way of achieving the same behavior but nothing so far 6 months later.
Facebook recommends asking for user's address in a textual form.
This means that if you use an API consumming GPS coordinates you now must use an address to GPS conversion service.
You could think that using a webview with a "get geolocation" button would do the trick but this feature is blocked on all desktop browsers. If the iframe content isn't on the same domain you cannot get geolocation data. Still it works on mobile (as it's not just a simple iframe but a full webview).
Basically, at the time of this writting, you have no much way to achieve the same as the "get position" quick reply behavior.
The only solution is to ask the user's address in a textual way and convert it to GPS coordinates (if you need them).
You can use the location quick reply:
https://developers.facebook.com/docs/messenger-platform/send-messages/quick-replies#location
I want to build an data tool for facebook apps and I've searched for a few hours online to see if there is a way to find the app list for a specific user. Couldn't find anything. Does anyone know how to do this.
PS: I have taken a look at: Is there a Facebook API call to list all apps? but it did not help me
Any help is appreciated.
Thanks!
I am not sure if this is what you want, but it looks like it: https://developers.facebook.com/docs/graph-api/reference/user/applications/developer
The user docs say that this is the endpoint for "The Facebook apps that this person is a developer of."
I'm new to developing mobile apps, and I'd like some help. I'm trying to create an app that, upon downloading and opening it, tells you nearby Facebook users. Will this have anything to do with the Facebook API? What is the easiest way to do this? Any examples or references would also help a lot.
as far as i know Facebook not have an option to get the friends by coordinate or something like that,
what you can do is create a database that stores your app users location and when a user logs in to your app you show him results by this database.
Hope it Helps.
I've been wondering, what list does facebook places use? Is it foursquare's one?
And if so, how does it work? Can I connect to foursquare's API and get nearby places with coordinates or something like that?
Thanks a lot!
Here is simple way to find out places near by given LAT and LONG as well as with specific word like-- Hotel,Bar etc:
http://maps.google.com/maps?f=q&sll=LATANDLONG&radius=500&q=SEARCHWORD&output=kml
It returns KML file ,and user can parse just like XML parsing.
Here's a link to FourSquare's documentation. Scroll down and look for "Venue methods." You supply the API the users longitude and latitude and Foursquare will return a list of nearby places.
http://groups.google.com/group/foursquare-api/web/api-documentation?pli=1
Also, here's a link to some sample code on how to implement the Foursquare API into your iOS app.
https://github.com/anka/bw_examples/tree/master/FoursquareIntegration
I believe facebook and the like foursquare built up their places mostly by user input.
In other words they might have started by buying a commercial dataset in a particular location. That's the seed data. Thereafter, users can add more places as they go. This way their database grew and now they have their own proprietary data about places.
If you go to either apps, you can search for a place, and if not found you get the option to add that place with address, category etc.
I am curious to know if Facebook uses any third party API for its Places feature.
For how it works, you can use Facebook Graph API which provides search.