Skip to content
Zhuoweic edited this page Feb 24, 2013 · 23 revisions

Apply for app key

ALL SNSAPI users must apply their own application keys to enable a certain platform (if it requires OAuth). Not only developers need a key! All the OSNs we currently touch do not allow other users to authorize test stage Apps, e.g. only the developer can authorize it. In this case, everyone needs to register as a developer first and apply their own key. Whenever you see sample usage of SNSAPI, remember to change their app_key and app_secret to yours. Alternatively, you can ask the key owner to assign you as a test user if you really want to use others' keys.

Introduction

Sina

Expiration: 5 years

Renren

Expiration: 30 days

Tencent

Expiration: 7 days

Twitter

Expiration: NONE

Note, twitter do not need to authorize it every time. As developers, they provide you a permanent key to use. You can even get your app authority without waiting for their review. Very convenient!!

Procedure:

  1. Apply for your own twitter account at "https://twitter.com/" if you do not have one.

  2. Fill in the form and create your twitter application at "https://dev.twitter.com/apps/new"

  3. Click on Create My Access Token at the bottom of the page after finishing the form

  4. Done! The consumer key and consumer secret here are the app key and secret that we want

Clone this wiki locally