Twitter API에서 callbackURL을 확인했습니다.
2163 단어 트위터TwitterAPI
Twitter API에서 Callback 오류가 발생했습니다.
Twitter 인증으로 오류가 나왔다.
갑자기 왜? ?
Received HTTP status code [403] with message
"
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings
</error>
</errors>
"
when getting temporary credentials.
Enable Callback Locking (It is recommended to enable callback locking to ensure apps cannot overwrite the callback url)
error code="415"
뭐야??
원인
조사해 보니 한 달 전부터 고지가 있었습니다.
h tps : // / 라고 해서 r 넘어 ty. 이 m / t / a c Chion-Rekure D-G-N-U-Th와 r-use rs-mu st-u-te-st-kal ck-u rls / 105342
지금까지는 URL의 체크가 없고, 우선 넣고 있으면 뭐든지 OK였습니다만, 제대로 체크하게 되었다고 하는 것입니다.

이런 식으로 지금까지는 URL은 뭐든지 좋았습니다.
해결책
2018년 6월 13일 이후에는 API를 사용하는 앱측에 제대로 callback 시 URL을 설정해야 합니다.
계정을 연결할 때 반환되는 URL입니다.
덧붙여서 개발 환경에 있어서는 localhost
는 NG 이었습니다만, Vagrant 로 사용하고 있는 IP 를 사용해도 OK 였습니다.
실제 앱에서는 올바르게 URL을 지정해야 합니다.
즉 oauth/request_token
를 요청할 때의 oauth_callback
매개변수에 들어가는 url을 Twitter 개발 계정 설정 화면의 callbackURL에서 설정한 URL과 일치하지 않으면 안 됩니다.
자세한 것은 이쪽
h tps : // / ぃ는 r こむにty. 코 m / t / 아 p ぃ 카치 온 - 오 th 캬 루 쿠 쿠 r 루 칸 t 베 ぃ ぃ s d / 105957
htps : //로 ゔぇぺぺr. 라고 r. 코 m / 엔 / 드 cs / 바시 cs / 굵은 l ck_u rl
Reference
이 문제에 관하여(Twitter API에서 callbackURL을 확인했습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/non0311/items/48a6b25097d1783eab23
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Received HTTP status code [403] with message
"
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings
</error>
</errors>
"
when getting temporary credentials.
Enable Callback Locking (It is recommended to enable callback locking to ensure apps cannot overwrite the callback url)
Reference
이 문제에 관하여(Twitter API에서 callbackURL을 확인했습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/non0311/items/48a6b25097d1783eab23텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)