作者dinos (守护神)
看板PHP
标题[请益] yahoo & twitter oauth2
时间Sun Apr 5 12:52:46 2015
最近在研究ㄧ堆网站的 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://webptt.com/cn.aspx?n=bbs/PHP/M.1428209574.A.4E4.html
1F:→ dinos: fb&google一般应该不会碰到问题 04/05 12:53
3F:推 alex0914: twitter 是1.0a 没错阿XDD 04/05 13:03
4F:→ dinos: twitter没有用oauth2吗? 囧rz 1.0很麻烦耶 04/05 13:34