IOS: Registering new app on Facebook - ios

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.

Related

Can i add only a login function to my app? Swift/Parse

I have an app in which i want to only add a logIn button. No signUp.
I am thinking of it like this please tell me if this can work?
SaaS based. So if a business wants to use app, they must sign up on website.
once they do, they can download app where i will give them their logIn Credentials.
Therefore if someone downloads my app from the app store they cannot register unless they are a SaaS customer. Only LogIn with the credentials i provide after signing up and paying for the service.
This being said, if this is doable. i used the parse swift signup code to get my classes working on parse.com
If i go into the users class, i can add new usernames and passwords. (Great!)
If i delete the SignUp code now from my app, and add the LogInUserinBackground code will it still work for logging in users so long as i add their credentials on the Back-End?
Thank you for all responses! Much Appreciated.
Yes, that can and will work.
You can of course remove the ability to create users via the app and only support the creation via the application. Just set the user up via the website, assign the username and password and you are ready to go. Of course you have to create some kind of login form inside the app - what you cannot do is customize the application one user downloads to one specific SaaS customer so that he gets logged in fully automatically. At least once the user has to enter the user credentials in the app.
And as far as I am informed that is even allowed by the app store guidelines - you only have to make sure apple gets a demo account when submitting the app in the end.

ios - multi facebook account on one device

I'm having an iOS app, need Facebook login to share something to wall. Everything is ok until I received new feedback from customer. Let me describe this case.
Apple have integrated Facebook into iOS system, user just needs to login via Setting, it is so easy for user. But my customer does not want to do that, they want user to login Facebook inside app and use it instead of Facebook of iOS system. Problem is here, there is a case: user has already logged in Facebook account A via iOS system, then user opens app and login Facebook inside app with other Facebook account B. After that, user shares a picture. Requiment is this picture should be shared on wall of Facebook account B (of app), but this picture appeared on wall of Facebook account A(of iOS system).
I just wonder do we have any solutions to resolve this case? Please give me any ideas you all have in mind after reading.
Thanks,
Ryan
I faced the same problem with Facebook SDK whenever a user login from any app using Facebook it change userid returned with the token which leads to share on the latest opened account.
if you open Facebook from a browser you will get this message from Facebook " we got confused please re-login "
so i took the same approach i saved user-id User(A) and whenever user share i check id coming with token if it changed i show " Facebook account changed please relogin " & i log all users out.
check this link may be helpful: https://www.facebook.com/help/community/question/?id=10205949056147843

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.

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.

Resources