What is my foursquare authenticaion, callback_url and application website?

白昼怎懂夜的黑 提交于 2019-12-10 11:07:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!