Facebook iOS SDK. Native Auth after user taps "Don't Allow" - objective-c

When using Native Auth, how can the app ask for auth permission again if the user has already pressed "Don't Allow"?
I made a simple app that connects to Facebook using the Native auth dialog box.
When testing, I pressed "Don't Allow". Now, everytime I press the Login button I created, it throws an error, saying that auth was cancelled. In Settings.app, my app is turned off under Facebook.
Reinstalling the app doens't help. How can I make the app ask for auth permission again, when the user taps "Login"?
Thanks in advance.

Unfortunately, you can't. This is IMO a bad design by Apple. Feel free to file a radar about it. In the meantime you'll have to tell your users how to go to the settings app and turn on your app. Each app has a toggle to turn off or on access to that Facebook account.

Related

Can't get my app reviewed in Facebook API

I can't get my app to be reviewed through the Facebook API.
The app is purely a facebook messenger bot, and the app type is "business".
I have configured the specific permissions I need, however I recieve an error that states "You do not have any platforms eligible for review. Please configure a platform on your Settings page."
I also cannot add my app domain in the basic settings, as whenever I press save changes, the url does not save and disappears.
Additionally there is no option to make my app live.
Any advice?
The error message
I am leaving this answer in the event someone else needs it. It was an answer suggested by Facebook support when I encountered the same problem.
Go into App Settings and add a platform "Website"
Just add your website URL.
If the requested permission is just Messenger based then the website will not be accessed or tested.

How do I secure my electron app with firebase auth?

I want to secure my electron app with firebase auth. The idea is that the user has to click on a button in the renderer process to "Sign up/ Login" and then a new browser window opens in his default browser (not in electron), the user signs up or in and returns back to electron app which automatically signs the user in.
I'm using the following:
Electron: 13.6.9
Angular: 12.1.2
I tried the Electron Firebase repo but to be completely honest I was totally overwhelmed. It's well documented on how to setup but not on how to implement it to an existing app.
I also found this but this seems to be highly insecure to have an auth token exposed: https://pesto.app/blog/how-to-authenticate-with-google-in-electron
Could you guys help me to figure this out in a conceptual way (if you have code examples even better)?
Thanks in advance!

How to authorise an application to use Facebook credentials of Setting in iOS?

In my app I want to add Facebook Login. I have already done that but the problem as of now is I get a Pop Up to login via Facebook. I want if user has installed Facebook application in his device there should not come any pop up for login. As the user has already provided his credentials to the device. The basic intention is to use the credentials of setting and log in to the my app without so that Facebook installed app user doest need to give his/her credentials again.

LogIn using the Paypal Mobile SDK (Android)

i followed this guide: https://devblog.paypal.com/phonegap-android-sdk-plugin/
to integrate PayPal in my Phonegap Hybrid App.
If I pay with a credit card (in sandbox env) it works correctly and i can see the notification in my dashboard.
But if i press the login button, whatever user credentials i insert, it always return an error in login.
So i navigate and i found this:
So i want to know if i am doing something wrong or if it's really impossible to use this feature from mobile. In this case i wonder why the Java class allow to show a login button if it is useless.
Solved, I needed to create some Sandbox account to log in.

get same permission screen every time when login with facebook app installed in the iOS device

I am using Facebook iOS SDK v3.5 for my app, I found that if I installed the facebook app and was not logged into the iOS device (Settings > facebook), then if I was logged into my app for the first time, it works fine: it will switch to the facebook app's login view and show some permissions with a "OK" and a "cancel" button. but after I was logged into my app and logged out and logged in again, the same permission screen in the facebook app will still be shown. I think the expected behavior is that when log in for the second time we should not see that permission screen since we have already granted these in the first time log in.
The same thing happens in the sample project "Scrumptious" in the FB SDK v3.5. Does someone know how to solve this problem? Thanks.
If I understand you correctly, the behavior is working as intended. Basically, the semantic here is that the user has logged out, so it is appropriate to ask them to confirm to log in again. Specifically the logout code in the sample (and in most apps) is to clear the token cache on the device, so the next time the app is asking for a new token.
You are right that once a user has granted permissions (and until they revoke them), the Facebook servers do know this. As a result there is a slightly nuanced flow in the login screen (you can see this by granting publish to scrumptious, and then the next time you request post it will be something akin to "you've already granted this permission").
So, you could technically not clear the token cache but then why bother with a log out option.
Hope that helps.