Skip to content

Create Odnoklassniki App

gorbin edited this page Oct 30, 2014 · 3 revisions
  1. Register as developer http://ok.ru/devaccess
  2. Create new app
  3. Add App App settings
  4. Then you will get message to your email cntaining APP_ID, APP_PUBLIC_KEY, APP_SECRET_KEY
  5. Fulfill "Список разрешённых redirect_uri" with okauth://okXXXXXXXXXX
  6. Add to AndroidManifest.xml
    <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="okXXXXXXXXX" />
        </intent-filter>
    </activity>
    where XXXXXXXXX your app id

For sharing from your app you need VALUABLE_ACCESS: For getting it from odnoklassniki fust send them email to oauth@odnoklassniki.ru with your app id and shortname