I'm trying to integrate both a Facebook and a Foursquare login system into my app. However, I have no idea how to edit the URL type and URL scheme under the myapp.plist
. Should I just add a new item under URL scheme or create a new URL type?
This is the image for Facebook login.
It looks like you're just trying to create a custom URL scheme. To do this, do something like this:
Then, all URL requests that are sent to
myapp://whatever-url
on the device will be directed into your app. You can identify them in the app delegate file of your app using the following method. I'm assuming you're getting data sent back to you in the URL (like a token) and you need to retrieve that information, so you'll need to parse the URL.myapp
can literally be whatever you want. The purpose here is to send a URL that will only direct users to your app. So, this must be something unique. For example, don't usefb
because that's used by the Facebook app.