iOS App Facebook Login Screen with Logo - ios

I have written an app that uses Facebook login via the FBSDKLoginButton. The login window shows up and the user can login using their Facebook email and passowrd... that all works great!
I am trying to figure out how to make the login window show our company logo but I cannot find this anywhere in the documentation.
Can someone point me in the right direction? I have seen many other iOS Apps that use FB Login and have their logo displayed so I know it can be done.
Here is a screenshot:

You should change the app icon of your Facebook app in order to do that.
Navigate to developers.facebook.com.
Click on My Apps on the top right corner.
Select your app.
Select Settings/Basic from the menu on the left.
Hover over the section called App Icon (which is on the bottom left of the first editable section) and click on the Edit button.

Related

How to add app icon when user swipes up? (Swift, Xcode)

How do I add an image to the app icon that displays when the user swipes up? This is not the same as the regular app icon (I know how to change those). The icon is blank. Below is a link to an image of what I am talking about:
Link to problem

Trigger iOS universal link on browser redirect

I have universal links set up for a native app. E.g. when I tap a link to my website (say https://my.website.com) from an email app, the native app opens automatically. But when I browse some website, which redirects me to https://my.website.com in safari, all I get is a bar at the top, suggesting me to open in the native app. Moreover that bar is only visible if I drag down a bit, so it's not visible immediately. How can it be fixed? how can I make the app auto-open in such case?

Adding a button to user home screen

I would like to ask if there is a possibility to add button into user homescreen. Let's assume I have an app, when user do something with app I want to add a button into user homescreen. I'm thinking about something similar to "Add to Home Screen" from Safari app.
You can add web link icon on home screen, and no way you can add some buttons with custom actions on home screen. Every "button" is application or link icon and nothing more

Switch between WebView and NativeView with Swift

Problem Statement:
I have an a native app which has a G+ single sign-on.
When I click that button, it displays an alert - "application wants to use google.com to sign-in" along with 2 buttons "Continue" and "Cancel"
When I press "Continue" on the alert, it opens a browser inside the app where the account selection page opens. It shows accounts.google.com as the page URL.
Assuming that I've already signed in to Google once before, I want to select / click a particular account from the list of google accounts being displayed there.
After I click the account, the user is navigated to a native screen called "Dashboard".
To automate this, in Appium + Java, I click on the G+ button and then switch the context to webview and then select the account using xpath and then switch back to native view as login is done now and application is back to the native screen.
driver.findElement(By.xpath("XPATH of Native Screen - Google SignIn Button")).click;
driver.switchTo().alert().accept();//Clicks "Continue" Button.
driver.context("WEBVIEW"); //Switch to WebView
driver.findElement(By.xpath("XPATH of intended Account Name HTML control")).click();
driver.context("NATIVEVIEW");
...Then, I perform the other operations that I want to perform on the native app screen.
I want to do the same in XCode + Swift but I'm not finding any way to do it.
Here's what I do
//some code to click on the button
app.buttons["Google Sign In"].tap()
app.alerts["“AppName” Wants to Use “google.com” to Sign In"].buttons["Continue"].tap()
...Now I don't know how to switch to WebView of the App and click on the HTML control that contains the account name and then switch back to native view.
Please help.
Try using this when you click on sign in with google:
GIDSignIn.sharedInstance().signOut()

iPad Safari Home Screen website gets stuck on Facebook Login

I have a website that uses the JavaScript SDK, and I have a facebook login button that calls FB.login() that opens a new tab for the user to log in.
This website is optimized for the iPad, and I made a home screen entry for this website so it could be viewed in full screen, like how this article mentions it:
http://www.viaboxxsystems.de/html-fullscreen-apps-for-the-ipad
My problem is that only in the home-screen-launched, fullscreen version, when I click on the login button, either I see a white screen, or I get the login details screen (but in that case, clicking "Log In" also results in a white screen), and thus I get to a dead end.
How do I make it so the Facebook login goes through and I get redirected back to my website successfully?
Apple’s documentation for this says,
When you use this standalone mode, Safari is not used to display the web content—specifically, there is no browser URL text field at the top of the screen or button bar at the bottom of the screen.
Sounds to me like this might also affect the ability to open popups. If that’s the case, you could maybe use the server-side authentication flow instead.

Resources