Timeline Guest Login Fails | TWTRTimeLineViewController

ios
login
swift
embeddedtimeline

#1

Hi,

I’m trying to implement an iOS app using swift that draws a timeline. When I’m trying to login as a guest it fails all the time, however when I authenticate my own login, it works every time.

How can I enable guest login to work reliably?

Update: (my code)

override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        //I've shown below the authentication version but the issue is that the logInWithGuestCompletion doesn't work
        Twitter.sharedInstance().logInWithCompletion { session, error in
            if let validSession = session {
                let client = Twitter.sharedInstance().APIClient
                self.dataSource = TWTRUserTimelineDataSource(screenName: "UserName", APIClient: client)
            } else {
                println("error: %@", error.localizedDescription);
            }
        }
    }

#2