Answer the question
In order to leave comments, you need to log in
What redirect_uri to specify for Android applications in Odnoklassniki?
Hello, I'm trying to connect Odnoklassniki to the Android application in order to get the name, gender, photo and city of the current user. Sharing is not needed, so VALUABLE_ACCESS was not requested.
Three other social networks work without problems, but I have been suffering with Odnoklassniki for the 2nd week - after the call
mOdnoklassniki = Odnoklassniki.createInstance(context,
"1158060544", APP_SECRET_KEY, "CBALJHAGEBABABABA");
mOdnoklassniki.setTokenRequestListener(this);
mOdnoklassniki.requestAuthorization(getContext(), this, true);
https://odnoklassniki.ru/oauth/authorize?client_id=1158060544
&response_type=code
&redirect_uri=okauth%3A%2F%2Fok1158060544
&layout=m&tkn=4561&scope=null
okauth://ok1158060544 (предложено в Android-примере на apiok.ru?)
ok1158060544://authorize (предложено в iOS-примере на apiok.ru?)
http://slova.de (будущий сайт поддержки моего приложения)
http://localhost (от отчаяния, все равно не катит)
<activity
android:name="ru.ok.android.sdk.OkAuthActivity"
android:launchMode="singleTask"
android:configChanges="orientation">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="okauth"
android:host="ok1158060544" />
</intent-filter>
</activity>
mOdnoklassniki.requestAuthorization(getContext(), this, true)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question