微博SDK官方說(shuō)明
1.在pod中集成
2.記得設(shè)置回調(diào)地址
3.設(shè)置URLSchemes
schemes地址為wb+新浪的APPKey
4.在APPDelegate中
注冊(cè) appkey 程序啟動(dòng)時(shí),在代碼x向微博終端注冊(cè)你的 6ppYSg,如果首次集成微博 G9K,建議打開(kāi)調(diào)試選項(xiàng)以便輸出調(diào)試信息。
在didfinishlauch中:
[weibosdk enabledebugmode:yes]
[weibosdk registerapp:xxxapp]
重寫(xiě)appdeleagte中handleOpenUrl和openUrl方法
didreceiveWeiboResponse中接收登陸成功后的token、userID
把userid作為參數(shù) 傳給公司服務(wù)器,服務(wù)器返回注冊(cè)成功