看板 PHP 關於我們 聯絡資訊
最近在研究ㄧ堆網站的 oauth2 signin api,其中 fb, google, linkedin 都沒問題 不過在 yahoo 和 twitter 碰到問題 這是 yahoo 用的 https://github.com/BrandtCheng/social-login/blob/master/callback_yahoo.php 不知為啥 yahoo 要 token 時都是收到 {"error":"invalid_grant"} 或 {"error":"invalid_requst"} yahoo 的 document: https://developer.yahoo.com/oauth2/guide/ twitter 則是還在看不懂 document 中... twitter 的 document 好像是 https://dev.twitter.com/web/sign-in/desktop-browser https://dev.twitter.com/web/sign-in/implementing 可是不懂的是為什麼 request 是用 post,而且看起來比較像是 oauth1 @@? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.168.208.237 ※ 文章網址: https://www.ptt.cc/bbs/PHP/M.1428209574.A.4E4.html
dinos: fb&google一般應該不會碰到問題 04/05 12:53
dinos: linkedin的心得: http://disp.cc/b/611-8ANN 04/05 12:54
alex0914: twitter 是1.0a 沒錯阿XDD 04/05 13:03
dinos: twitter沒有用oauth2嗎? 囧rz 1.0很麻煩耶 04/05 13:34