I have a web app with Facebook login which was working fine. But suddenly new users had troubles to use FB to register. Facebook users with previous registration works fine. I am not sure if API was deprecated (in my developers FB page my app it is using API V2.12). Anyway my problem is to debug social registration. Create Facebook account becomes tricky being you need now a phone number each time and it should be a real one. So I was trying to figure out how to create fake users and founded it is possible on FB because you can create test users.
The problem is, when I try to register in my app using those accounts, they fail with the message:
User is not allowed to see the application.: The user is not allowed to see this application per the developer set configuration.
I know this is a standard message when you are trying to use a test user in another app. But I wasn't asked about in which app the test users should be used.
In resume; please enlighten me about the best way to test & debug Facebook users registration in an app.
Recently FB remove 'context' field from User. Being I was asking for that field, Spring Social start to throw a 500 error:
String[] fieldsToMap = { "id", "email", "context", "first_name", "last_name", "name", "name_format"};
User user = facebook.fetchObject("me", User.class, fieldsToMap);
That was the error, so it was fixed just removing 'context' from the array. Any case I can't understand why Facebook wasn't sending an email to all FB developers warning about the change.
By other side, I still not having a good way to test FB login automatically. Test users are unable to login into a published app. So, if somebody has a method, please share it.
Related
Our is a very old app and the developers who did the Facebook login integration are no longer working with us. So we can’t get into our Facebook Developer account because no one in the team has access.
Can we just create a new Facebook Developer account and update our integration ID to match the new account ?
Are there any risks? One thing I’m wondering about is if we do make this change if all the users who have previously registered via Facebook login need to register with us again because it is a new ID. But on the other hand, it might work since it is still the same App Id and the same Facebook user account.
Please help.
When you're trying to apply for Facebook Permissions for your application, you may encounter some permissions that requires App Review. In my case, I need to use the Facebook Login for Business Accounts, so I need to apply for Facebook's App Review.
In order to make an App Review for Facebook, you will need to provide step-by-steps videos and guides for Facebook testers to test for themselves. However, it does requires a Test User to do this.
A Test User can have a Test Page linked to it, and a Test Page is capable to link an Instagram Account created using this Test User. However, for some reason, I'm not able to convert this created Instagram Account as a Business Instagram Account using the Test User. I tried to link it using my application flow, but the "Convert to Business Profile" button does nothing, and if I try to do this in the Facebook Test Page account, the form that ask for Contact Information always throws a message "An Error Ocurred".
So, I'm unable to create an Instagram Business for testing and also not allowed to provide a real account because they don't allow this, as they explicitly says (Which I can agree with):
Note: Do not provide your personal Facebook account credentials.
As I'm unable to find a way around this, and I can't see to find any answer on the internet... I wonder if somebody could help with this one.
So, it seems it's just a Facebook bug (Just as one I was experiencing before this one, where after updating a Test Account permissions, the permissions were still not working properly) where the Test Account seems to be kind of locked in a state were you can basically do nothing more with it than what you have already done... So I end up creating a new Test Account and doing the same process, but this time it worked.
I had the same problem, and to fix it, I had to follow these steps :
Create a Facebook test user for your app.
Once the user has been created, click the three dots at the right, then edit its password, choose something that you will remember.
login as this test user.
Edit the user parameters and set its email address as main/default contact address (you need to type in the password of the user). It seems, by default, test user do not have default contact and this is required to login with instagram.
Now go to instagram.com, and create a new account using "login with facebook"
Fill in the name, password (you need to remember it), and userid.
Send the form, and you will get some error telling you to retry later. Ignore it, your account should actually be created.
Now switch to the instagram mobile app (web interface might not work, I was stuck in a redirect loop) so you can login to instagram using the email address of the facebook test user account (the one you used in point 4) and the IG password (you typed in point 6).
Hope it helps anyone stuck in this hell like I was for 2 days.
I have a mobile app that allows logging in with facebook, when a user logs in I pull their email from the graph api but I just got a couple of logins with email addresses with #tfbnw.net domains which I guess is for test users while developing on facebook. I didnt generate these so is this someone doing something shady to login to my app or just expected behavior for some users given their settings?
Mobile app coded in react-native, using expo
Those seem to be the internal facebook QA team going through your APPs and manually checking if you're following all facebook's guidelines.
Facebook auditing your app basically.... or at least they did to mine because right after those #tfbnw.net email registrations came in, I checked my facebook app settings and sure enough, I got an alert and an email shortly after. But never received those #tfbnw.net emails before today on any other facebook logins.
I have checked my account and it looks like a generic test user Open Graph Test User gets created automatically, according to which product you enable in your app. It gets created for example, if you enable facebook login or messenger platform.
not something shady IMHO
I'm making an app that only I will use. Because of this, I'm able to use the extended permissions without needing Facebook to approve the app as my account is also the developer account.
Anyway, I'm manually building a login flow. I have been using this URL to authenticate the app:
https://www.facebook.com/dialog/oauth?client_id=XXXXXXXXX&redirect_uri=https://delta.identity-demo.com:8443/exit102em/aa/facebook&scope=basic_info,email,user_about_me,user_activities,user_birthday,user_checkins,user_education_history,user_events,user_groups,user_hometown,user_interests,user_likes,user_location,user_photos,user_questions,user_relationships,user_relationship_details,user_religion_politics,user_status,user_subscriptions,user_videos,user_website,user_work_history,read_mailbox&state=12
I have two app IDs. One from a couple of months ago, and one I made last week. The older app ID works with this URL. However, the newer app ID does not and I end up with a blank page with a 500 response.
The two app IDs are as follows:
Old ID - 386918378110985
New ID - 145019279001886
Can anyone help me with this?
Thanks in advance.
P.S. The extensive scope and state variable are necessary for my uses. I cannot remove them.
basic_info permission does not exist any more. Once I remove that from the URL, it shows the first panel of the login dialog as expected.
(basic_info has been replaced with public_profile permission – but as the docs say, if you are doing login from the web, it is set as default already and you do not have to ask for it specifically via scope.)
I've been trying to figure out a way to have my iframe Facebook app (built in PHP) work without requiring separate authentication methods. I am already logged into Facebook, but for some reason I still see all these Oauth notices from the example in the PHP SDK.
The only data I need is publicly available even without them "adding" my app. I am looking to collect their Facebook ID (since this is a contest, we need a unique ID for tracking), their name and (optionally) their email address as well.
The problem is, I cannot use the API to fetch the public information unless I already know their Facebook username. Any ideas on how I might be able to get their logged-in username or public handle so I can then fetch the rest of the information?
For whatever reason, Oauth is driving me completely insane with Facebook today.
Sidenote:
I did manage to technically get the Javascript SDK operational, which fed some information to PHP for use. The only issue there is that once I login, I don't see the data. If I refresh...then it shows up. Unsure why the refresh is required, as I wouldn't expect a user to actually have to hit refresh in order to proceed with the app.
I guess you are a bit confused here, Facebook will NOT share the username, id, full name or email without the user explicitly authorizing/allowing your application (and in the case of the email, requesting the email permission!).
Read the official Canvas Tutorial for more information:
In order to gain access to all the user information available to your
app by default (like the user's Facebook ID), the user must authorize
your app.