Home>
I want to implement a login function on Twitter using Swifter.
Error messageThe following error has occurred, can you tell me how to deal with it?
Cannot convert value of type 'String' to expected argument type 'URL'
Applicable source code
↓ AppDelegate.swift
import UIKit
import Firebase
import Swifter
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application (_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?)->Bool {
FirebaseApp.configure ()
return true
}
func application (_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:])->Bool {
return Swifter.handleOpenURL (url, callbackURL: "Enter callback URL") // ← Entering a callback URL results in an error
}
I have implemented it according to this article.
[iOS] Login to Twitter with" Swifter "instead of TwitterKit
-
Answer # 1
Related articles
- about accesstoken of login function using twitter api in rails
- login function cannot be implemented well with ruby on rails
- swift - i want to select two variables at the same time (delete function)
- swift - how do i access a structure inside a function of another class?
- how to maintain login and add automatic login function in php
- php - implementation of editing function
- i want to implement a login function using nifukura in unity
- postgresql - can't make login function well with ruby on rails
- Java Predicate and Consumer interface function code implementation analysis
- Detailed implementation of matlab filter function process based on python
- Implementation code of vue routing authority verification function
- ruby - [rails] implementation of search function using form_tag
- laravel + vuejs login function error
- html - [implementation of like function] i want to solve the error of undefined method `id' for nil:nilclass
- swift - i want to distinguish the button function and drag function for one uiview
- Implementation method of list as function parameter in python to prevent modification by actual parameter
- ruby on rails - login function does not work well with rails
- Implementation of Java Token login and logout
- Diagram of the implementation process of JFR function of Java flight recorder
- JAVA implementation of Chinese character to pinyin function code example
Related questions
- how to use your twitter account with firebase
- ios - [swift] i want to register user name at the same time as signing up with firebaseauth
- xcode - adding dictionary type to array type causes duplicate elements
- swift - how to earn follower posts on the firestore
- ios - [swift] i want to save the image and video values in firebase storage and then save the url in cloud firestore
- analytics collection is not disabled on ios [firebase]
- swift - about firebase/rules
- swift - i want to resolve a build-time error in firebase/analytics
- xcode - i want to display images using firebase storage with swift
- swift : xcode. After user authorization in firebase, transition to view controller does not work
The URL to put in callbackURL
How about casting from String type to URL type?