问题
Im trying to integrate the foursquare API in my iphone but am stuck On the very beginning: registering my app. Its asking me for my callback_url and application website inorder to register my app and get my authentication code but I dont understand what Im supposed to put in for those links since I dont have a domain name for this app. Its just an app with no websites. I have been spending so many hours trying to figure out what to put in those two fields on the foursquare developer site but I have no idea what I need to do. Anyone know what my callback_url and application website is if my iphone app does not have a website?
回答1:
When you create your own mobile application, it does not really matter what callback URL you enter. You can set the callback URL to any valid URL, but for security reasons it is favorable to use one under your control (so that nobody else can get the token).
Please see the Foursquare documentation for "Phone-based or client-side application": https://developer.foursquare.com/overview/auth
There is also a link to an iOS code sample that shows how the OAuth process can be done directly on the device: https://github.com/anoopr/core-data-talk/blob/master/example/Classes/FoursquareAuthViewController.m
来源:https://stackoverflow.com/questions/10396363/what-is-my-foursquare-authenticaion-callback-url-and-application-website