How to test sign-up flow with 'Sign in with Apple' - ios

We're building a sign-up flow using 'Sign up with Apple'.
It seems fairly straightforward, but we can't find a good way to test sign ups. You have to use a real account, which means you can only ever sign up once. This is terrible for QA.
Has anyone found a good way round this? Are there any hacks that would allow us to create new Apple accounts for example?

You can revoke Sign In With Apple account association and test it again.
Go to iPhone Settings and select Apple Id
Go Password & Security
Apple ID logins
Select {YOUR APP}
Stop using Apple ID

Related

Reset "Sign In with Apple" to the initial create account state

I am implementing Sign In with Apple and basically everything works, I don't need help with that. However, while testing my implementation, I want to reset back to before the first time I used Sign In with Apple, where it asks you if you want to create an account, and asks for the name and email address. Like this:
After you signed in that first time and then sign in again, it only asks if you want to sign in using your Apple ID, but skips the requestedScopes. So, how can I go back to that first state where it does ask for the requestedScopes info, like name and email?
Reinstalling the app didn't help.
You can revoke the app's permissions for your apple ID in your phone/simulator settings. I've attached the steps where you can find everything.
iPhone Settings, select your Apple account.
Password & Security
Apps Using Your Apple ID
Your app/app bundle ID
Stop using Apple ID

Sign in with Apple test users

Where could I create random test users in order to test "Sign in with Apple" ?
The sandbox users created for Apple pay doesn't work for this too.
There is no "test users" for Sign In with Apple, yet.
You need to use real accounts.
Update:
I had a call with an Apple engineer for during a WWDC 1-on-1 lab.
They suggested a method to re-use the same account for Sign in with Apple.
The downside with this method is that it will NOT return realUserStatus after the first login. Here is the method:
In iOS, go to the settings> Your name on top (Apple ID, iCloud, etc) > Password & security > Apps using your Apple ID > Edit and delete your app.
Now when you login, every thing should work as if it is the first time using Apple Sign In, except the realUserIndicator.
In apple document not mention about test with sandbox account. So you need to use real account to test.
You can test apple pay with sandbox testing account
the details are here
https://developer.apple.com/apple-pay/sandbox-testing/

Facebook login error "User is not allowed to see the application."

Hi: I have submitted my app to the App Store. I have Facebook login feature in my app. When I try to login to Facebook from devices I have I am able to do it seamlessly. However Apple has rejected my app saying " When we tap the Facebook icon to sign up we are taken to mobile Safari where we receive a message that states :
User is not allowed to see the application.: The user is not allowed to see this application per the developer set configuration.
Not sure how will I be able recreate this issue. I installed my app on 3 different devices and was able to login without any errors. I checked my app setting on Facebook Status and Review section of Facebook and I have enabled my general public. Not sure what else I am missing. I just feel very dejected. Can anyone please help me figure this out? I am using parse as my backend service and logging users using parse Facebook login.
Thank you very much!
Another reason this will happen is if you are logged in as a test user from a different app than the one you are trying to sign in to. Facebook test users are app-specific.
Sign out of Facebook and back in with a test user from the correct app.
Go to Safari > http://m.facebook.com > logout
In cases where app sign in with safariviewcontroller, sometimes it contains test user of different app
In my case, I was using wrong facebook application id in the code. So added the correct id & it worked for me.
This issue occurs because Apple testers used the same Facebook test account which was created to test any other app and they did not logged out from that account(forgotten to log out) and that facebook test account doesn't have the permission for the current app in review which is why this issue occurs,
You can follow the given link to replicate the issue by creating an an test account.
http://samwize.com/2014/07/23/error-with-facebook-login-using-test-users/
Steps to create Facebook test account
https://developers.facebook.com/docs/apps/test-users#managetool
We had this problem, and it turned out that the problem app didn't have a namespace set up in the Settings > Basic tab. Creating one is the solution to this.
Recently I have faced this same issue. Presently Facebook doesn't allow you to login from any Facebook id as you app is in development mode. There are 3 possible solutions that work for me:
Use only that id for Facebook Log In Testing with which you are working in Facebook for developer.
In Facebook for Developer-> Login to your Account-> Open app->Roles-> Test Users-> Add->Submit-> Edit on newly created random tester account->"Change Name and Password for this Test User"-> Provide a Name and handy password for testing.->Submit.(Use the given random generated mail id and password for testing Facebook login through your app.
3)In Facebook for Developer-> Login to your Account-> Open app->Roles->Roles->Testers->Add Testers->Provide Facebook Id for the user you want to add as tester->Submit
To get Facebook Id for a valid user. Login to Facebook with the Id you want to make as facebook tester in your development process.Then goto profile and in URL of browser you see id=(some_random_number). Copy that Id and paste it into Add Tester section of Developer account. It will be in pending state until the valid user accept the inviation.
I had something similar when validating to apple too,
I still don't get it now but for some reason the facebook secret id had been erased from the parse configuration.
You must check that point too
I don't know if that was the reason or not but for me this happened only after I signed the application with a release key, so I made the app 'public'. Probably the test users doesn't work for public applications.
We had this problem, and the solution is to use the same FB test accounts that was created from the same FB App. So if the App get rejected from App, then you should send to Apple a FB test account with password.
my side
I was using wrong facebook application id in the code. So added the correct id & it worked for me.

iOS FBLoginView: the user is not allowed to see this application per the developer set configuration

I have included the FBLoginView in my view controller on XCode without any problems. When I press the button in the iPhone simulator, I get redirected to facebook on safari, but it gives me an error that reads: the user is not allowed to see this application per the developer set configuration.
The app is set to public in the Facebook dashboard, and it is set up in settings with the bundle id and single sign on.
Any suggestions?
This error are most likely caused by using a Facebook test user account to log into a live (non-sandboxed) Facebook app, Facebook test users are app-specific.
Sign out of Facebook and back in with a test user from the correct app.
There are other options like namespace is missing, secretId etc. but if the first answer is not the problem then my guess it's probably something with the app settings in FB.
I have also face this problem
my fault was because I create a "Test User" but the test user I was created is Test User for Facebook Security, not Test User App. So the solution for me is:
First:
Go into your app on Facebook: https://developers.facebook.com/apps/
And then go into your APP and you can see the App Dashboard.
Second:
Click on Roles and Click on Test Users and then you gonna see this board.
Third:
Click on Add button to add Test User, and you gonna see this board like below:
Select Authorize Test Users for This App? to Yes
And login Permission I set email because I want to get email from Test User and the Age you can choose depend on your App, and then click on Create Test Users
Final Step
Set the Test User password.
And we're done, now we can use the Test User we created to test on our App, but make sure to sign out the previous account on Safari first.
I don't really sure if this is the right answer or not, and the question also had been ask for a long time ago, but I decide to answer this question for others who face a problem like this, I hope this helps everyone who faces the same problem. Cheer.

IOS: Registering new app on Facebook

There must be an easy answer to this one....
I am trying to integrate my latest IOS App to Facebook. I have not used Facebook before, so just set up a "company" page with basic information on my firm.
I'm following all the Facebook links i.e. https://developers.facebook.com/docs/mobile/ios/build/
But I cannot get beyond Step 1 (LOL). Whenever I click the link "Step 1: Registering your iOS App with Facebook," it keeps taking me to my company's Facebook Admin screen!? I cannot find a way to register my App off this screen. Where is the "Add new app" link??
I'm going in circles. Help appreciated.
It's not possible to register an App under a Business account, and you have to create (or lend) a personal account. And keep in mind: Facebook frowns upon incorrect information, so should be a legit person or your account will be suspended when (not if) they find out.
Secondly you have to authorize your Facebook account. For example: by entering mobile phone no. and entering code from a text FB will send you (more info: http://www.facebook.com/confirmphone.php) or entering CC information (more info: https://secure.facebook.com/cards.php)
When you (finally) have an authenticated account:
https://developers.facebook.com/apps Is the location you should be looking at.
Over at http://developers.facebook.com/docs/opengraph/tutorial/ Step 1 describes the creation of a Facebook App. (rather simple, by clicking on "Create New App")
Hope this helps! Good luck!
I believe the problem is that you are attempting to create a Facebook App with your "page user". IE you clicked "Use Facebook as..." and clicked on one of your pages.
You can not create an application in this way. Applications must be created by "real" users. You're going to want to follow that tutorial you posted to and use your user.
If you are hesitant to use your own account, ask your boss to use his or request from your clients login credentials to open the application on their account.
The reason behind this is so that Facebook can track "bad" applications back to real people, people who had to verify their account by submitting a mobile phone or credit card number.

Resources