I'm developing a Facebook integrated Android app. I followed this tutorial to the dot. The problem is that I get the following error if the Facebook app is not installed on the device when logging in:
Given URL is not allowed by the Application configuration
I implemented Single Sign On as specified in the tutorial. If I run my app on a device with the Facebook app already installed, my app redirects to the Facebook app to sign in. That's fine. However, if the Facebook app is not installed, I get the error. Here's a snapshot:
which redirects to Web page not available on signing in:
Edit: I double checked the tutorial and saw this bit about filling a Mobile Web URL which I didn't follow. I'm not quite sure what to enter here. Any help?
Fixed it. Seems to have been a bug on Facebook's side. Using the updated repo from github solved the problem.
Related
I am using the cordova-plugin-facebook-connect plugin to launch the share dialogs from Facebook. iOS is working great, and Android is working great when the app is installed.
On Android, if the app is not installed, it tries to share with an embedded web browser. After entering my email and password, I get an error saying that logging into Facebook from an embedded browser is disabled. I am using the latest version of the plugin, which SHOULD mean the latest Facebook Android SDK
I have looked on our business dashboard and made sure that embedded login is allowed:
...but that mentions OAuth so maybe it's not relevant. I have uploaded the debug and production key hashes to the dashboard
I have found nothing on the Facebook docs and I haven't gotten an answer from the Facebook developer community.
To sum up:
If the app is installed, it is all good. Without the app, it uses the embedded browser, but Facebook is blocking the login. I would love to know WHY and how to enable it.
UPDATE: Using a Facebook generated test user worked
Cheers
As Recommended by Facebook please update Dependencies to
implementation 'com.facebook.android:facebook-android-sdk:[8,9)'
Ref :
https://developers.facebook.com/docs/android/componentsdks/
https://developers.facebook.com/blog/post/2021/06/28/deprecating-support-fb-login-authentication-android-embedded-browsers/
Facebook has let everyone know that they are deprecating support for FB Login on Android embedded browsers:
https://developers.facebook.com/blog/post/2021/06/28/deprecating-support-fb-login-authentication-android-embedded-browsers/
As of right now, they are blocking High Risk users with this error and will block everyone starting in August. Their suggestion is to use a later version of the SDK (8.2+) to avoid this
I can't comment (yet) so I'm creating this answer to ask you if you could try and remove all (!) local browser data, i.e. Cookies and local storage, etc. This is the first thing that came to my mind when I read "works with another login".
The issue is resolved if the user has enabled 2-factor authentication via facebook.
I have tested this with multiple real users now and for example enabling sms-2fa does enable the user to login into apps with an embedded browser. The login happens as usual if the user has the facebook app installed on the same device and already logged in on the facebook app with 2fa. Otherwise, facebook will request the 2fa when logging in but a login is possible again.
I have however found out that some apps seem to crash if they had been opened before 2fa had been activated on a phone with a facebook app and those apps need to restarted before trying to login on them again.
From this we can assume facebook blocks out embedded browsers due to their risk assessment. 2fa is specifically presented as an option to login via unsafe browsers within the security options of each user individually and sadly does not seem to be an issue on the side of who ever is using an embedded browser within their app.
This also happened to me but I've fixed it.
I just uninstalled my Facebook application and used my browser instead.
Try installing another browser, like Firefox, and set this the default browser, then login again with your Facebook credentials. It worked to me. I guess the problem is with chrome. For me, it worked when I set Firefox my default browser.
For your account security, logging in to Facebook from an embedded browser is disabled. You may be able to continue by updating the app you're logging in from and trying again.
I have an android app, and I'm trying to use Facebook Deep linking.
I sent a request to another facebook user (who already has the app installed), but it always redirects him to the Play Store app page, instead of sending him to the actual app.
Can anybody help me ? I'm following this guide but it's not so helpful:
https://developers.facebook.com/docs/games/mobile/android-tutorial?locale=es_LA#requests
I actually had a bad configuration on Facebook App settings. Missing namespace in class name.
https://developers.facebook.com/docs/android/send-requests
You need to add mobile site url as a platform on facebook app settings. This would enable redirection to google play store. This might be an issue in facebook.
Also check this: http://www.wenda.io/questions/1875350/facebook-android-sdk-app-request-not-redirects-to-google-play-store.html
I was facing the same issue, although I already had the package correctly in the class name I also had to switch on the 'Single Sign On' option before it would open the installed app instead of opening Play Store.
We need to share some information on user's profile page in Facebook using Phonegap.
To do that, we are trying with the Phonegap facebook plugin. As the phonegap app is still in development, we have created an app in Facebook as we understand that an app id is needed. We created the app and tested, but we are getting this status:
{"status":"unknown"}
with this error message:
No active session
Of course I have added the Android configuration to test in Facebook, with the Google Play Package Name and class, the hash, and tested enabling and disabling the sso. Nothing worked so far.
Any ideas?
Thanks
I am using ParseFacebookUtils to provide log in feature in my Android Application. I have successfully integrated Facebook and Parse SDK's. I do not want to make the application created on Facebook live to public yet, because it is still under development.
ISSUE:
I am unable to Login to the app when I provide any Facebook Log in credentials EXCEPT for the application administrator's credentials. If I provide any other credentials, I get the following error shown right after Facebook Log in Screen:
App not setup: the developers of this app have not set up this app properly for Facebook .
How can I enable many users to log in to the app without assigning them any role through the Facebook dashboard?
check Hemang answer here, it well explained.You need provide valid email address and make the app available to general public on facebook developer page though it is in testing mode.
Solution 1
Check your keystore is proper.Verify it.
Solution 2
what type of permissions you requested. If some permissions needed to be approved then you have to upload the apk and get approved.
Solution 3
Try to use SimpleFacebook Library. Its quite simple.
I'm currently trying to develop a facebook login functionality using phonegap in an android app. I've done all the ncessary installs and generated an hash key for the app which I have placed on facebook but I keep getting the following error:
Given URL is not allowed by the Application configuration.: One or
more of the given URLs is not allowed by the App's settings. It must
match the Website URL or Canvas URL, or the domain must be a subdomain
of one of the App's domains.
I've had a look at the following link and done what the link suggested but I'm still getting the same error in the logcat console
The implementation which have you have used will be working for web application (running in browser). For native app, please follow this steps. Please let me.