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.
DownloadI was stuck with my Literature Review section and also was not sure how to go forward with my MBA dissertation paper. Then I came across TheReliableTutor and their dissertation consulting helped me a great deal.
My main concern was the research that needed to be done for the human resources assignments for my undergraduate program. Keeping up with the course load and assignments from the other professors I was having a tough time. With TheReliableTutor, the tutors help out with the research saving my time and assisting me in submitting well researched and balanced assignments.
I had spent a lot on another online assignment service provider but their quality of work left a lot to be desired and most of the time I was having to redo the whole thing on my own. So I was ending up paying a bomb without getting any results. That is when my friend told me about the great quality and affordable prices of HwA. Once I gave it a try I knew I had hit gold! My grades improved a lot and I have also got a clearer understanding of the concepts of factor markets.
Believe it or not I used to get C or D in my chemical engineering assignments. So when the chapters of distillation came I was really worried. But with the help of HwA, I started getting a B or an A. Then gradually when it came to the kinetics of solids, I passed with straight “Aâ€s"
I actually had a research topic in mind but was unsure of how to frame the research question. The research question assignment expert of HwA has helped me to narrow down the topic to one single question which became the foundation of my entire research. They also helped me with the actual research paper where I got excellent grades.
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.