Android Titanium App "invalid OAuth consumer key" Error - android

I have a problem with my first published Android Titanium App
In connection to the cloud I get this error:
"invalid OAuth consumer key"
The keys are properly septate
thanks

Mr. Andrea, Please recheck all the 6 keys in your TiApp.xml file. This issue occurs when the acs-oauth-key-production is incorrect. I've marked the keys in the first picture. You'll get the original keys from your applications as given in the second picture.
Hope it resolved your issue

The problem was on in the code, but not at the level of the server configuration, but had problems.
I created another service I changed the keys
so it all works

Related

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.

Get API Key From LinkedIn Issue

I am trying to add new application on linkedIn and getting API and secret key.
from this createing new application
but while i registering form form for adding new application, i fill all required fields. but after that i faced starange issue every time, it redirects me on main page. and error displaying at header
"There was an unexpected problem that prevented us from completing your request" !!!
I found my answer after long search, the solution is so strange that:
By giving company name with space, I was not able to create that.
but when I removed space from company name, it worked for me and I am succeeded to get my API key and secret key.
Hope this help others also.
I had the same issue though my company name had no space.
Product description must be < 50 words. Once I got it under, it worked.

Why Facebook application id suddenly become invalid?

First of all I'm sure that my fb app id is valid because users can log in my Android app using facebook credentials until some days ago (I think it's before Feb break change).
Recently new users cannot log in my Android app using facebook any more because facebook keep saying that my fb app invalid (Error is: Invalid application fb-app-id) BUT old users who already authorized my Android app for accessing their info can still log in using facebook. (Old users can still login to my app using facebook credentials but new users cannot)
Does anyone know why this happen to my facebook app and how to fix it?
Edit: When access to https://graph.facebook.com/facebook-app-id I get this error
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}
Thanks you.
If you're sure the app is not in sandbox mode (which was gema.megantara's answer), and hasn't been deleted for policy reasons by Facebook the only explanation I can think of is that you've restricted the app demographically (i.e by country or age)
If that's the case the API won't return the app's details unless you make the API call using a user access token for a user who meets whatever restrictions you've applied, and users who don't meet the requirements won't be able to use the app.
If that's what you've done, you can remove the restrictions via the API (via the restrictions field of the Application object or in the ''Advanced'' tab in the app settings in the App Dashboard
If using the frontend interface to change the settings, it's the ''App Restrictions'' field you want to edit, screenshot attached
Basically the same solution as the accepted answer, just updated for the latest FB developer site has been updated so you need do this:
Apps->Your App
Status+Review
Do you want to make this app and all its live features available to the general public? -> Yes
Usually if you get error like that when visit https://graph.facebook.com/523132271032907 is because the sandbox mode is on. Have you try to reset the secret key ?
I think, this is because FB does not check whether application id is valid when the user has already logged in. It likely assumes that if the check passed, the id is valid. Apparently, locking out the users after making the app id invalid has never been a design goal.
try replacing:
<string name="facebook_app_id">CHANGE-ME</string>
with:
<string name="facebook_application_id">CHANGE-ME</string>

When creating CLIENT ID: "An unexpected error has occurred. We're looking into it."

I am getting "An unexpected error has occurred. We're looking into it." when creating CLIENT ID
It did not happened before.
But recently I follow the new guide by Stephen Wylie, delete the whole project and start fresh
The first 2 times i delete and create new API project, it was ok.
But today I try again, and the error appears.
I cannot continue right now.
Another side question, when will the official Android sample be posted?
It had been promised for few months.
Unlike dropbox, box, skydrive, they all have very good sample that allows people to integrate into their app in few hours or even less than half hour if you are experienced.
The package name/signing certificate fingerprint (SHA1) pair has to be unique and that includes deleted projects. If you need to create a new API project and don't want to change the package name, you can also generate a new keystore file to sign your application and use its signing certificate fingerprint instead of the former one.

Android: Error when login Facebook using new Facebook SDK v3.0.2.b sample

when I using new Facebook SDK v3.0.2.b sample HelloFacebookSample, I login to Facebook but I get error:
HelloFBSample is misconfigured for Facebook login.
But I have already generate Hash key and add it to Sample App Setting on Facebook Developer site.
Is anybody get the same defect?
Or is it a bug of new SDK?
Sometimes the Key Hash generated using the method given by the Facebook Doc does not always work as advertised. I have faced this problem and so have a few others.
There are a couple of things you can do to sort it out.
First method
Follow the tutorial on this site: http://www.helloandroid.com/tutorials/using-facebook-sdk-android-development-part-1
This is a little time consuming (about 5 odd minutes I expect) but worked when I tried it.
Second Method (And I personally like this one)
Find the Util.java in the Facebook SDK and open it.
Among the first few lines of code, you should see this piece: private static boolean ENABLE_LOG = false;.
Change the false to true and run your application with your logcat (DDMD) open.
You should see an error that looks something like this:
Login failed: invalid_key:Android key mismatch. Your key
"**real*key***" does not match the allowed keys specified in
your application settings.
If this is for a testing APK, using the debug.keystore, this will be enough. However, if this is for an app signed with your release key, then follow the steps till Step No. 3 but instead of pushing the app from eclipse, create a signed APK and install that on your device. Don't forget to keep it connected with DDMS running.
This part here: "**real*key***" is your actual key.

Categories

Resources