Change Dropbox User in Android - android

I am working on an application where I need to use DropBox ,I am using DropBox 1st time ,Using android DropBox API I authenticate successfully , But when I try to change already authenticated user its saying an error as > Invalid User
"Only a limited set of users can receive access tokens while this app is in development mode".
Anyone can guide what's the reason of this error message ?

This message is indicating that your app is in development mode, meaning you can only link the account that registered it:
Dropbox - Core concepts
If you're not ready to apply for production, but need to test with additional users, see here:
Test your apps with up to five users

Related

Facebook social login for Android apps NOT on Google Play Store

We received the message below from FB regarding our Android app. Our app was originally on the PlayStore but is currently not approved / published. We are still using the Play Store link in the field > 'Android: Google Package Name'. Seems Google may have made a change & this link is no longer valid.
While we work on restoring PlayStore approval, the Android app is available as a direct download. We don't know how long this process will take. My question is, does FB support Android APKs that are not listed on the PlayStore? Is there a way to use a different link in the field > 'Android: Google Package Name'? Our Android users have used FB login to create accounts so we really need to keep this feature active. If anyone has any input here that would be great. cheers
Message from FB:
In order to keep our Facebook platform and community safe, we periodically review apps for compliance. We need the following action from you on your app, (), in order to approve your app’s continued operation on our platform.
URL(s) listed on your app dashboard settings could not be accessed for platform compliance review. Kindly make sure that the following field(s) on your app dashboard are working correctly:
Android: Google Package Name
The corresponding URL(s) should return a successful HTTP status code. You can verify this using the Sharing Debugger.
Sharing Debugger: https://developers.facebook.com/tools/debug/sharing/
Compliant response codes: 200-299
Violating response codes: 100-199, 300-399, 400-499, 500-599
Please also allowlist the user agent strings or the IP addresses (more secure) used by the crawler. For detailed instructions, please visit: https://developers.facebook.com/docs/sharing/webmasters/crawler.
For Google Package Name(s) and iPhone Store ID(s), please make sure that these are publicly available.
Kindly apply the requested changes to prevent your app from being restricted on our platform. You can check your app dashboard to verify if the violating fields are now compliant, otherwise you will receive an automated alert as soon as we've detected that the fields are compliant.
Thank you for your cooperation in our continued efforts to keep our platform safe.

Multiple Accounts suddenly added in Firebase Authentication

I'm currently developing an app which is only accessible by me for now. I can already connect to Firebase but somehow I noticed that there's alot of unknown email added. I'm expecting it to have around 4 email which I have used for testing. May I know why this happened? And will this affect my app if ever I finished developing it?
Note that I didn't share/upload any info/keys that I'm using.
I was thinking that someone might have used my info/keys mistakenly that is why this happens.
If you uploaded your App to the Play Store such accounts are created by Google while they verify your app. That is normal. You don't need to worry about it.
Also see: My Firebase project has unknown users, has my google cloud service account been compromised?

Merge a Facebook login app used for Android with an iOS one, or migrate users to new one

A legacy setup we have means that we have the following:
Facebook app used for login onto Android devices
Separate Facebook app used for login on iOS devices
The issue this has caused is that if a user switches between devices they get a 'this email address is already in use' message from our server.
I need to find a way to get any users logging in on the two platforms to just be able to do so, and i assume the best way to do that is to:
Add Android as a platform on our iOS login
Change the Android app to use the 'other' login/app id (iOS)
Log everyone out on next release of our app (on Android)
Re-authenticate those users on Android as they log in (as we are making them use a new app id)
The key thing is for us however, that
The Facebook login is associated to their entire account (which is hung off the email address) and they have lots of content in there, so we cannot get those Android users to lose anything
We need to let them do this because we WILL already have used that email address if they are logging back in
Will the above strategy work to do this? Any pointers or recommendations on best strategy for this would be hugely appreciated.
You can use this API to link your users across the two apps: https://developers.facebook.com/docs/apps/for-business
Just keep the two apps as separate apps and link them under a single business. Then, when a user logs in you can check if they have already logged in before using the other app.

App not setup: This app is still in development mode

I have followed the instructions here:
The developers of this app have not set up this app properly for Facebook Login?
Made my app public and the circle is green so the app is public.
But when I try to login, I go to the Facebook app, it asks me to login which I do and then I get this message:
App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions.
BTW: I am the admin
Any help is much appreciated. I am using SeattleClouds and this happens on both iOS and Android.
STEP 1:
In Settings -> Basic -> Contact Email. (Give your/any email)
STEP 2:
in 'App Review' Tab : change
Do you want to make this app and all its live features available to the general public? Yes
This is an answer I haven't seen much around (this it was in a comment somewhere) although yes taking the app off development mode will work this can be bad for security or really annoying if the app isn't ready yet but you need to submit the app for review on account of needing access to special permissions (e.g. user_birthday).
What I did instead to fix the error was go to https://developers.facebook.com/sa/apps/{appId}/roles/ or from the app dashboard click roles on the left side
Then add the user account(s) to either developer or tester. Developers will need to be verified by mobile and will get access to the app to make changes but a tester will only need to be verified by email (not sure if even this is necessary but it probably is) and will only be able to use the API instead of make changes to settings.
If the app is ready for the public, obviously just take the app off development mode.
Issue Log: App Not Setup. This app is still in development mode. and you dont have access to it. register test user or ask an app admin for permission
The app are not in Live Mode
You are not listed as admin or a tester in https://developers.facebook.com/app/yourapp
Your App Hashkey are not set. if Facebook app cant be on Live Mode you need a hashkey to test it. because the app are not yet Live. Facebook wont allow an access.
HOW TO CHANGE TO LIVE MODE
1. go to : https://developers.facebook.com
2. select your app on "My Apps" List
3. toggle the switch from OFF to ON
HOW TO ADD AS TEST OR ADMIN
1. go to : https://developers.facebook.com
2. select your app on "My Apps" List
3. go to : Roles > Roles > Press Add for example administrator
4. Search your new admin/tester Facebook account.
5. admin must enter facebook password to confirm.then submit
the new admin must go to developer.facebook page and accept the request
6. go to : https://developers.facebook.com
7. Profile > Requests > Confirm
8. Congratulation you have been assign as new Admin
HOW TO GET AND SET HASHKEY FOR DEVELOPMENT
as Refer to Facebook Login Documentation
https://developers.facebook.com/docs/android/getting-started/#create_hash
The most preferable solution by me is by code ( Troubleshooting Sample Apps )
it will print out the hash key. you can update it on
https://developers.facebook.com/apps/yourFacebookappID/settings/basic/
on Android > Key Hashes section
a step by step process on how to get the hashKey.
Firstly Add the code to any oncreate method
Run The app and Search the KeyHash at Logcat
step by step process on how Update on Facebook Developer.
Open Facebook Developer Page. You need access as to update the Facebook Developer page.https://developers.facebook.com
Follow the step as follow.
2021 UPDATE
I have done successfully Login with Facebook by doing below things. Now it is working fine.
As per described by George Mano
Visit Facebook Apps Page and select your application.
Go to Settings -> Basic.
Add a 1 Contact Email, 2 Privacy Policy URL, 3 User Data Deletion and choose 4 Category and Last 5. Live your application
The Privacy Policy URL should be a webpage where you have hosted the terms and conditions of your application and data used.
The General Data Protection Regulation (GDPR) requires developers to provide a way for people to request that their data be deleted. To be compliant with these requirements, you must provide either a data deletion request callback or instructions to inform people how to delete their data from your app or website
Toggle the button in the top of the screen, as seen below, in order to switch from Development to Live.
captain_a is right that your app needs to be public with a developer email address. But if you are still getting the error then make sure that your website is using an SSL certificate.
For more detailed information and workarounds please checkout my answer at Facebook app is Public, but gives error "App not setup" when logging in
I had the same problem and it took me around one hour to figure out where i went wrong only to note that i had used a wrong app id....just go to your code and used a correct id here
window.fbAsyncInit = function() {
FB.init({
appId : '1740077446229063',//your app id
cookie : true, // enable cookies to allow the server to access
// the session
xfbml : true, // parse social plugins on this page
version : 'v2.5' // use graph api version 2.5
});
2020 UPDATE
Visit https://developers.facebook.com/apps/ and select your application.
Go to Settings -> Basic. Add a Contact Email and a Privacy Policy URL. The Privacy Policy URL should be a webpage where you have hosted the terms and conditions of your application and data used.
Toggle the button in the top of the screen, as seen below, in order to switch from Development to Live.
I did what is written in this answer and still had the same problem, then I downloaded the facebook app, logged into my facebook admin account from my phone. TADAA! it worked.
When app is release some time that case
https://developers.facebook.com/apps/{$appid}/alerts/
"Your app has been placed into development mode due to an invalid Privacy Policy."
can change you app from release mode to development mode
so check the Privacy Policy
Go to Settings->Basic, on top you will find a Switch button which will say App is in development mode.
Click on in development switch button, it will ask you to make app live, and after providing all necessary things, it will become live.
Facebook and Instagram apis were perfectly working fine but they suddenly stopped working due to invalid privacy policy statement. Facebook deactivated api access.

Dropbox Android SDK refuses to link multiple accounts

I'm working on an android application that allows user to link multiple dropbox accounts (personal, business from one or more accounts).
I'm using Dropbox Core SDK for Android v 1.6.3.
From time to time I'm experiencing the problem when it's not possible to link the second dropbox account if I link the first one through "Use different account" -> chrome login and then try to immediately link the second one through the dropbox app directly (or through web browser again, probably). Dropbox SDK simply never returns auth tokens to my app.
I've made a small investigation on internals of the process and it appears that the problem is current version's of android dropbox application fault.
Basically, I can see that SDK internally generates a random nonce value used to authenticate callbacks from the dropbox app. And this value is somehow gets cached in the dropbox app: when I try to link the second account my app receives valid credentials from the dropbox app but the nonce is not correct - it's the one from the previous link process, so the SDK discards credentials.
I can also see that when I try to link the second account through the "Use different account" the dropbox app fires VIEW intent with wrong nonce value the URL. So seems like this is the dropbox app's fault rather than some system behavior.
The issue is reproducible for me on android 4.4 and 5.0.
Maybe someone from the dropbox team can advise me something? I'm ready to provide additional details if they are required.

Categories

Resources