Why is there error_code":100,"error_msg":"PARAM: Selected platform is not allowed for this application when requesting users.getCurrentUser?


I downloaded and started a test example to work with Android SDK https://github.com/odnoklassniki/ok-android-sdk there were no Problems. users.getCurrentUser returns the user data.

Further, in the MainActivity and manifest I changed the details on their application (APP_ID = "1248444928"; APP_KEY = "C***************A"; REDIRECT_URL = "okauth://ok1248444928").

The authorization was successfull, however, at the request of users.getCurrentUser returned: {"error_code":100,"error_msg":"PARAM : Selected platform is not allowed for this application","error_data":null}

To use the library from here: https://github.com/gorbin/ASNE With this library, and my details of application users.getCurrentUser returns the user data. However, the library uses the old API classmates and does not give session_secret_key necessary for the widget publication https://apiok.ru/ext/publish, so no good for me.

1) What means this error?
2) How to get rid of it?
July 2nd 19 at 18:02
1 answer
July 2nd 19 at 18:04
From the user

Before connect SDK, you must check in the application settings:
  • Added in Android application framework

Thank you. Was not added. I didn't even see this setting, because Liba with the old API worked. - nikita.Stracke commented on July 2nd 19 at 18:07

Find more questions by tags Android