Odnoklassniki

Skip to end of metadata
Go to start of metadata

This page is a step-by-step guide for the process of opening and setting up an external application in Odnoklassniki as part of the Gigya Setup process.

Note: If your site is defined under one of Gigya's non-US data centers, replace domain references to (http:// or https://) "socialize.gigya.com" (or "socialize.us1.gigya.com") with https://socialize.<data_center>/

Where <Data_Center> is:
  • us1.gigya.com - For the US data center.
  • eu1.gigya.com - For the European data center.
  • au1.gigya.com - For the Australian data center.
  • ru1.gigya.com - For the Russian data center.
  • cn1.gigya-api.cn - For the Chinese data center.

If you are not sure of your site's data center, see Finding Your Data Center.

Domain references are defined in Gigya's dashboard, externally in social network app definition pages, and when using Gigya's SDKs to set the domain (in particular the APIDomain field in class GSRequest). 

Important: Https is required to create an application on Odnoklassniki.

When using any 3rd Party Apps with Gigya, it is important to ensure that you Enable retrieving user contacts from the Permissions page of the Console prior to making your app live. This enables basic username and email retrieval for your users from providers that don't consider this an elevated permission.

 

Phase 1 - Acquiring developer rights in Odnoklassniki

  1. If you have not done so yet, register as a user on the Odnoklassniki website at http://odnoklassniki.ru/dk?st.cmd=anonymRegistrationEdit&st._aid=AnonymMain_Register_RegisterEdit.


     
  2. Once you register you will be prompted to add a phone number to activate your account. You will receive an SMS message to enter in the next window. Follow the instructions in order to complete the registration.
  3. You will recieve a confirmation after succesfully verifying your phone.


     
  4.  To receive  OAuth2 developer rights: 
    • Open the request page at  http://www.odnoklassniki.ru/devaccess .
    • Select the checkbox at the bottom to confirm that you accept the developer agreement.
    • Click the confirmation button.


       
  5. In the next step, click on Follow the link to go to the Apps administration page.

Phase 2 - Creating an app in Odnoklassniki

  1. Go to the My Uploaded Games page at http://www.ok.ru/dk?st.cmd=appsInfoMyDevList.
  2. Click the Add App link.

  3. In the Application Settings page:
    1. Enter your app's title.
    2. Shortname (which will be used to create a shortcut link).
    3. Description.
    4. For Application Type, you must select External. Then save this setting by clicking the Save link, directly underneath the Application type section.
    5. Enter URLs for your app's avatar image (128x128 pixels) and two icon images (50x50 and 18x18 pixels). You may also enter a URL for a banner image (208x136 pixels).
    6. For App Link, Enter your website address. Important: This must be https.
    7. Enter  https://socialize.gigya.com/GS/GSLogin.aspx and http://socialize.gigya.com/GS/GSLogin.aspx into the List of permitted redirect_uri field. (It is not necessary to check the Client OAuth authorization box).
      1. If you are using a CName, instead of the above use:
        1. http://<CNAME>/GS/GSLogin.aspx
        2. https://<CNAME>/GS/GSLogin.aspx
    8. Enter a valid URL in the Link to Customer Support Team field.
    9. Enter a valid email address in the E-mail for notifications field.
    10. Be sure Status is set to Public (if you are using this app on a live site).
    11. Under the Permission section:
      1. Setting status (SET_STATUS)  is Required.
      2. Editing photos and photo albums (PHOTO_CONTENT) is Required.
    12. Finally, click the green Save button labeled Сохранить.
    13. You should now see your website (app URL) displayed on the next screen, indicating your setup was successful.
    14. Check your email inbox for the confirmation email from Odnoklassniki. This email contains your application ID, public key and secret key, which are required in order to set up your app in the Gigya console (see next section). You will also need this Secret Key anytime you need to access your app online and/or make any changes to it's settings.


Phase 3 - Configuring Odnoklassniki's Application Keys in Gigya's Website

  1. Go to the Dashboard section of Gigya's website. You must be logged in to Gigya.
  2. Click the Site Settings link that corresponds to the domain you wish to configure. You will be redirected to the Site Settings page for that site.
  3. Once at the Site Settings page, click Providers Configurations from the left-hand menu.



  4. On the "Providers Configurations" page, select the Odnoklassniki app settings by clicking the appropriate icon.



  5. Paste your Public key, Secret Key, and Application ID that you received in the email from step 2 into the corresponding fields.
  6. If you are using a CNAME check the Enable CName box.
  7. Click OK in the configurations dialog and then click the Save Settings button (located at the lower right-hand corner of the Providers Configurations page).

 

That's it, Odnoklassniki's configuration is complete!  Please note that it might take up to an hour for our system to become synchronized with Odnoklassniki.