PHP + Yii的facebook oauth认证在响应中没有返回“code”参数


facebook oauth authentication with PHP + Yii doesn't return “code” parameter in response

我正在使用PHP + Yii的facebook oauth认证。直到上个月,它一直工作得很好。但是当我们做回调请求时,它突然不在响应中返回"code"参数。原因是什么呢?facebook最近是否更新了其身份验证API ?

我将回调URL从'https://graph.facebook.com/oauth/authorize?client_id='CLIENT_ID'&return_session=true&scope=manage_pages,offline_access,create_event,publish_stream,read_insights,read_mailbox,read_requests,sms,user_photos,read_stream,email,user_checkins'更改为'https://www.facebook.com/dialog/oauth?client_id=CLIENT_ID&redirect_uri=YOUR_URL&scope=read_stream&response_type=code',并为我返回响应代码。