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

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.

Related

I can't access to facebook test user's profile on iOS Safari

I have created facebook test user and this is user id '123277648572642'
however I can't access the public profile using this url - facebook.com/123277648572642
what am I doing wrong?
That's expected behaviour, from the Test Users documentation:
A test user is a special Facebook account, invisible to real accounts, which can be created within an app for the purpose of manual or automated testing of that app's Facebook integration.
(emphasis mine)
You should be able to log in as that user using the instructions in the documentation to add content, test if your app is working as expected, etc, but normal/real Facebook users can't see the profile, and you can't see it when logged out.

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.

facebook iphone - how login under different user

I'm making a game for iphone, so my question:
How is the end user supposed to change his login. Meaning if he decides to log in under a different name?
I noticed that even a resetting of the phone and reinstalling the app doesn't work, I'm still logged in under the same user as before.
My next guess was FB.Logout, but this page tells me not to use it:
https://developers.facebook.com/docs/unity/reference/current/FB.Logout
And also, under Settings -> Facebook I logged into another user already, too - in my game it's still using the old user...
You need to set
[FBSession.activeSession closeAndClearTokenInformation];
for Facebook Logout.
closeAndClearTokenInformation closes the session and clears any cached info, destroying the session. This means that when the app is re-launched the cached token will not be available. The login view will then be shown.
That is because that LogOut function will log out the user from FACEBOOK, not just from your app. Plus the documentation you are looking at is for unity. You should follow this guide: https://developers.facebook.com/docs/facebook-login/ios/v2.0
They show how you can easily log in and log out which is what you are looking for. If you don't have a predefined account set on the device then you will be able to log in with your email and password using the facebook log in interface (in were you can log in as a different user if you want)

Facebook adding tester users and admin is: (pending), what does that mean?

The new Facebook developer integration should be really handy and easy, but i'm struggling with creating a test user or a regular Facebook user to get permissions to sign in my app.
I opened a "TestApp", and login in as a "Admin" works great!
The problem is adding more Facebook accounts and test users.
When i tried to add a Facebook account to "Testers" section, i get this (pending) message next to the persons name, and can not log in the app using Facebook with that user!
Same issue with adding a "Admin" to the app:
After this didn't work, i figured if i create a "TestUser" maybe i'll have better luck, but the test user does not show up when i'm trying to add him to the "Role".
Any one that can make this clear to me a-bit more will be much appreciated.
Thanks!
Found the answer, its a bit silly but if anyone else gets the same issue...
After you add a new user to the "Testers" he gets a notification that he must accept, so the "Pending" will go away, and the user will be activated.
This notification does not get to the Facebook home page, only to the "Developer section" of that user. As #rmp251 mentioned, that can be found on this page
Thanks for the help.
I just want to add few details on the answer but I cannot comment.
The test user need to register as Facebook developer (if he not reregistered already)
Link: https://developers.facebook.com/async/registration/
After that he need to approve the request from the app
Then he need to approve the request at this link
Link: https://developers.facebook.com/requests/
I was trying to add an administrator to a Page owned by a Gray account. The invitee would see a notification appear briefly, but it would vanish as soon as they clicked on the Notifications button, and would not show up in their list of notifications.
Workaround: The invitee can go here to see and accept the invite: https://www.facebook.com/pages/?category=invites
In case anyone is trying to add Instagram Test Users, there's also no documentation on where this "pending " request goes.
Log into the invited Instagram account in a web browser. Go to https://www.instagram.com/accounts/manage_access/. Click "Test Invites".
Log in from desktop to your instagram tester account. Press MORE then SETTING, then APPS AND WEBSITES and then you'll have a 4th tab TESTER. Also you have to add tester the instagram account that you want to display.

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