Instagram第三方授權(quán)登錄為Web式樣,故APP端直接訪問如下URL
https://api.instagram.com/oauth/authorize/?client_id=YOUR_INS_APP_CLIENT_ID&redirect_uri=CALLBACK_URL
YOUR_INS_APP_CLIENT_ID:instagram創(chuàng)建APP后獲取
CALLBACK_URL:https://www.xxxxx.com/?xxx=xxxx&response_type=code (用于授權(quán)登錄成功后,調(diào)用自己網(wǎng)站接口,獲取用戶信息,如:https://www.xxxxx.com/?xxx=xxxx&code=36ac6cd14ceb49dbb40ec8c4b3864da0)
服務(wù)器獲取code,獲取access_token
Request the access_token,獲取用戶信息
參考:
https://graph.facebook.com/v2.10/debug_token?input_token=xxxAPP 傳遞Token xxx&access_token=xxxxFacebook 平臺xxxx
參考:
驗(yàn)證用戶
URL:https://dev.twitter.com/rest/reference/get/account/verify_credentials
Http Method:Get
服務(wù)器安全驗(yàn)證方法:
APP端上傳用戶的Token,Token Secret,id.
服務(wù)器與twitter交互,獲取用戶id
服務(wù)器獲取的id與APP上傳id進(jìn)行比較.如下
參考: