-
Notifications
You must be signed in to change notification settings - Fork 53
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.
Expiration: 3 months (for appkey owners)
Website: Tencent Open App Platform
This interface should be a good start for learning how to use snsapi. The application is easy while the authentication is also convenient.
Expiration: 5 years (for appkey owners)
Website: Sina Weibo Open App Platform
Problem: My personal account seems to be unusable ever since they adopted the OAuth 2.0 standard.
Expiration: 30 days
Website: Renren Open App Platform
Expiration: NONE (for appkey owners)
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:
- Apply for your own twitter account at "https://twitter.com/" if you do not have one.
- Fill in the form at "https://dev.twitter.com/apps/new" and create your twitter application
- Click on Create My Access Token at the bottom of the page after finishing the form
- Now, you should configure the channel as follows.
"app_key" = "consumer key"
"app_secret" = "consumer secret"
"access_key" = "Access token"
"access_secret" = "Access token secret"
Expiration: About an hour
Procedure:
- Refer to https://github.com/ivanchak/snsapi, there is a wiki (https://github.com/ivanchak/snsapi/wiki)showing the details.
- Generate your access token
- Configure the channel as follows.
"platform" = "FacebookStatus"
"access_token" = "your_access_token_here"