How to use Foursquare API to find nearby places in iOS Applications.
As I am new in this environment.. So please help me to find any sample tutorial available on the API.
I had gone through this link, And I got the response "error type" : deprecated so please provide another link for this same solution..
Thanks in advance..
You can try looking at this link for more information about Objective-C libraries that work with the foursquare API.
Edit: Currently this one appears to be the more recent, more chances of it working properly, also good documentation there on how to integrate it. It is the second one listed in the foursquare library page.
Also check out the foursquare developer site in general, you will need to know the different endpoints and what data they return anyway => https://developer.foursquare.com/
this Link is pretty good,comes with little instruction, u can use the search venues,check in,photo services..heaven!
go through foursquare Api page for desired modification.
in the FSQMasterViewController.m file you need to #define kClientID #"yourClientId"
and #define kCallbackURL #"ur callback url"
fix your infoPlist the urlSchemes too
Related
I need to know can I share photos with Facebook or Whatsapp using expo SDK? I try to do this but I can't find any solution for this. I also used the
react-native-fbsdk
it not works and gives an error like this.RTCFBLoginButton does not exist in UI Manager
Anyone have a suggestion please explain to me. thanks for advance!
react-native-fbsdk requires a link. However, Expo does not apply to Link. So you have to use ExpoKit in Expo. How to use it is located on the linked site. https://docs.expo.io/versions/v32.0.0/expokit/eject/
and For more information on sharing, please refer to the link at https://forums.expo.io/t/social-sharing/1764 below.
Please leave a comment for further questions.
I want to get the nearby place by passing the current lat-long.
And want to get photos of that place.
I have got this link:
http://api.foursquare.com/v1/venues.json?geolat=40.82&geolong=-74.1&l=50&q=pizza
But it is showing me
Error page
How do i get this error solved?
Please help me and suggest a FourSquare API URL which will help me to get the place information and photos of current lat-long.
Thanks
The v1 API is no longer functional. You'll need to use v2.
https://developer.foursquare.com/docs/venues/search
I'm working on a similar app...
Use API explorer to create and test the string you'd like to use
As Gilbert said, you have to use v2, this is an example of a valid link...
https://api.foursquare.com/v2/venues/search?ll=45.49,15.59&categoryId=4bf58dd8d48988d1c4941735&radius=3000&oauth_token=A5ZDWL2DLXPZCQ3ZJESVOAKDMPQHSNNVWC3UMVOUOXPQHWRT&v=20121105
As you can see, you also must have &oauth_token=A5ZDWL2DLXPZCQ3ZJESVOAKDMPQHSNNVWC3UMVOUOXPQHWRT&v=20121105 at the end of the URL link...
When you're in an API Explorer copy the link below the textbox and it should work...
Take a look here:
Thanks in advance.
I want to find out the near by restaurant details using current location details like latitude,longitude details. Is there any api for that, could any one have idea , please let me know.
Answer :
Hi all ,
I am using http://maps.google.com/?q=restaurents+near+hyderabad&output=kml this url now if it is not working i can follow the urls given by #Karthikeyan.
Yes this is possible in a variety of ways - you can choose
Facebook Checkins - https://graph.facebook.com/search?q=restaurant&type=place¢er=lat,long&distance=1000
Foursquare API - https://developer.foursquare.com/
Google Places API - Refer their doc before using this - http://code.google.com/apis/maps/documentation/places/
You should look for FourSquare API....I guess that will help you
As I need to integrate the foursquare in my application,
I have found the API and also integrate in my application. But there is some problem.
I want to show the nearest venue around me. As there is also method to show the venue
+(void)searchVenuesNearByLatitude:(NSString*)lat
longitude:(NSString*)lon
accuracyLL:(NSString*)accuracyLL
altitude:(NSString*)altitude
accuracyAlt:(NSString*)accuracyAlt
query:(NSString*)query
limit:(NSString*)limit
intent:(NSString*)intent
callback:(Foursquare2Callback)callback;
But the problem is what are the parameter need to pass for search venue which are in area of 5 KM.
Can any one help me to solve this problem.
Thanks in advance,
kunal patel.
Andreas has made a good example iphone project that hosted on github
I tried it and it's working very well take a look at https://github.com/anka/bw_examples/tree/master/FoursquareIntegration
Good luck
accuracyLL - this stands for accuracy Latitude Longitude.
Your foursquare library you'll see it's a wrapper for the foursquare API documented here: https://developer.foursquare.com/docs/venues/search.html
llAcc is the location accuracy in meters. For 5Km you would use 5000.
If you use oauth login method that would become more easy, You have to login through oauth 2.0 then using access token you can get any user details. I have found a very nice tutorial related to oauth, I hope this would help you
Does Twitter has the iPhone SDK which has a login popup like facebook iOS SDK?
It doesn't have. What I can recommend you is to use this DDSocialDialog library (just 4 classes) and you can have something similar
Look for this source code:
http://github.com/bengottlieb/Twitter-OAuth-iPhone
Thanks to Ben Gottlieb.
It opens the login page as a modal view.
Wrap the page in this:
https://github.com/cglong/FBDialog
No, it doesn't. You'll have to implement your own.
Sorry, they don't. But, as facebook, their REST API can return JSON payload and that's very easy to retrieve using NSURLConnection and parse using the JSON-Framework that you van find here
No Twitter does not have the login pop up as facebook has. You have to create your own login page. or you can get few from the open source.
Matt Gemmell and Craig Hockenberry, developer of Twitterific created MGTwitterEngine, an easy-to-use library of classes providing methods that make it extremely easy for the developer to access the Twitter API. see I believe there are a few other libs out there, but it's just as easy to roll your own because like Macha says above Twitter's API gives you the option to have the feeds in XML or JSON format.
Try this link
MGTwitterEngine
hAPPY cODING...