Get in touch with us
Send us an e-mail
Question
Create a Facebook login based app.
App should have 3, not necesary, view controllers.
1- welcome screen with a button to connect using facebook.
2- the facebook button and a button to go back to the main page.
3- theviewcontroller that will show up as the login went successful.
How can redirect the user to another window after login went ok?
This the code in the viewController.swift file
importUIKit
importFBSDKLoginKit //my Code
importFBSDKCoreKit //my Code
classViewController: UIViewController{
overridefuncviewDidLoad() {
super.viewDidLoad()
letlogInButton = FBSDKLoginButton()
view.addSubview(logInButton)
logInButton.center = view.center
if (FBSDKAccessToken.current() != nil) {
// User is already logged in, do work such as go to next view controller.
// I need help here. How to send the user to another window.
}
}
overridefuncdidReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
Everything works like it should, I just help redirecting the user to "Show after successful login" after login with Facebook happens
Right now it only shows the Facebook logout button and stays in the same page...

Show transcribed image text
Answer
Drop an email to support@thereliabletutor.com and get instant access to the solution.
Download
I certainly needed help with my medical science dissertation and there was so much that needed to be done. So when I looked for help online, I landed in this page and from there onwards it had been a marvellous journey to be honest. They helped me choose a very decent topic, they helped with the research proposal, and they helped me the entire paper and finally helped me to get the desired grades.
I had a research assignment where I needed to write a report on the local markets of New South Wales. It was difficult getting help online as most of these assignment help services are located abroad somewhere in USA or UK. I was happy to see that TheReliableTutor.com has tutors from not only Australia, but New South Wales itself and they cater specifically to students like us, who are from or studying in Australia.
1. As my parents are both cost accountants, I thought that accounting is my blood. However, everything is not that easy as I often failed to match my trial balance and was finding it problematic to write my cash-flow statements. I knew I need assistance apart from the help that I get from my accounting professor. So when I saw TheReliableTutor.com, I was happy as they helped me solve my accounting homework. I even got good grades now.
I was doing fine with the smaller assignments given in my class but when it came to a research paper, I stumbled. Thankfully I came across HwA who not only helped me to write the paper but also at the same time enlightened me about the process of writing a proper research paper. I understood the basic difference between an essay and a research paper, thanks to the research paper writing experts of HelpwithAAssignment.com
I was clueless about the way in which I was supposed to approach my research dissertation paper till I came across the team of HwA. I was also not sure whether they could help me or not but to my surprise they started asking the right kind of questions to me. When I clarified them with my professor, she was impressed and told me that I understood the concept of the research dissertation.
Comments
this is a very good website
I have 50 questions for the same test your page is showing only 28
hi can you please help or guide me to answer my assignments. thanks
hi can anyone help or guide me to my assignments. thanks
This solution is perfect ...thanks
Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes
Perfect bank of solution.
great !
thanks for the quick response. the solution looks good. :)
thnx for the answer. it was perfect. just the way i wanted it.
works fine.