Error during Single Sign On - android

I've built the code from this tutorial and it worked fine. But today the application asked me to aprove some unknown permissions(but i didnt add any permissons or anything else to my code) and showed error message after I clicked "ok" button:
Error detected in Appname. Please try again later.
API Error code: 100
API Error Description: Invalid parameter
Error Message: Requires valid redirect URI
What wrong with it? Where this redirect URI should be set?
PS: onCancel method of DialogListener is been calling during the error.
Update: I've found the issue on facebook bug tracker.

"Enhanced Auth Dialog" should be disabled in application settings to solve the issue.
Removing the Facebook application updates could also help.

Related

Android calendar API account selection

I followed the Android calendar api integration from the official site and I encountered some issues.
The 'choose an account' dialog doesn't stop to pop up. I select an account from the list and instead of continuing, the dialog pops up again.
I tried debugging and found that after this line the mCredential object is still null
mCredential.setSelectedAccountName(accountName);
even though the account name contains the real name. I believe that this is the problem, but I didn't find out how to resolve it.
Can anyone help me with it?
Figure it out.
I raed this question:
Android M - GoogleAccountCredential setSelectedAccount doesn't work - name must not be null
The problem was that I didn`t request on runtime the "GET_ACCOUNTS" permission.
All tough it was not written at the log cat as an error, after adding it solve my problem.

Facebook share dialog android return error

I want to share a simple link from my android app.
I followed the getting started guide from Facebook and all seem okay in my app since I can open the share dialog.
I imported FacebookSDK project and linked library
I set my appproperly (package/class name and dev hash keys)
My manifest has right permissions and meta-data
Additional infos :
I use a real device for debug
I run a test app as admin
I'm running a simple share code sample from an activity
I had troubles to generate hash keys but that post helped me. I got an error saying XXX key (different from the one I generated) doesn't match.
Then I tried the method explained here (at the end) to log another key.
Since now, I just get a toast saying "Something went wrong. Please try again."
What am I doing wrong ?
So I solved my problem thanks to another post. The problem is I was trying to generate a key outside my main (first) class.

Facebook Dialog Sharing issue with SDK in android(#100 invalid fbid)

I am facing one issue in publishing post via facebook app using sdk in android.
When I am trying to post something, it gives me toast message like"(#100) invalid fbid". and Log is printed as : Error: com.facebook.FacebookException: Error publishing message.
Please note: I have added Publish Permission,My FB App is visible to all Users and most Importantly,I have made a demo using same app id,package name and all and it is working there,but when I am merging that code in app,It always ends up in the error.
So,What could be the cause?Because same code,same fb app id is working fine in separate app,but not working when merged in the application.
Please suggest what should I do?
Thank you in advance.
SOLVED.There was mistake in manifest.xml...We should write android:value="app_id".I have written android:resource="app_id"..So it was error of class casting between Integer and String.

GoogleJSONResponseException

I tried to start using Google Cloud Console and followed after the Google IO tutorial for Geek Serendipity http://www.youtube.com/watch?v=v5u_Owtbfew. I followed all the steps of the tutorial, however, I get an error every time I try to send a request to server. Neither logcat, nor Eclipse console gave any errors, however, I see a toast in the application that says
com.google.apiclient.apis.json.GoogleJSONResponseException:503 Service unavailable... "reason": backend error.
However, in google appengine logs there are no recent error.
Has anyone faced same problem?
I would suggest that you ensure the following:
1) Check that you have set PROJECT_ID correctly in the Consts.java
2) You should definitely see the same message in LogCat. Check this answer to get your LogCat working:
Android debugging on device - LogCat doesn't work!
Once LogCat works, you should see the same Exception there, along with another exception such as SocketTimeoutException, or something else that will give you an idea of what went wrong.

Blank permission screen on login attempt

I'm making an android app that allows users to login with their facebook accounts. I can run it on the emulator and log in and out of my account perfectly. However, when i then tried to do the same on my actual android, when i went to login a blank facebook dialog poped up with the title "Permissions". There's a "Okay" button at the top right of the dialog, and when i click that it gives me the following error:
An error occurred with [App Name]. Please try again later.
API Error Code: 100
APE Error Description: Invalid Parameter
Error Message: Requires valid redirect URI.
My phone automatically logs me in because i have the facebook app installed on it but not the emulator, whereas my emulator i have to enter my info every time.
This only happens when i try to use the same account for both my phone and the emulator. With different accounts for each everything works fine
Mate,
I've been fighting with this issue for a couple of days, and almost throw away my project.
The problem resides in the following setting:
App settings-> Advanced Settings -> Enhanced Auth Dialog: true
If you set that value to false, it will run like a charm. It seems that the facebook guys are testing non-working stuff with us, without a warning! The default value is true, set it to false and problem solved!
Cheers.

Categories

Resources