curl facebook error. Malformed access token t​ype OAuthException code 190


C:\Users\wwforever.NOWCOM\Downloads>curl -k -F "access_token=My Access Token&message=facebook integration test by curl" https://graph.facebook.com/me/feed
{"error":{"message":"Malformed access token My Access Token&message=facebook integration test by curl","type":"OAuthException","code":190}}

 산넘어 산입니다. curl에 -k 옵션을 줘서 ssl 인증을 살짝 무시하고 진행했더니 이번에는 위와같은 에러가 발생합니다. curl 옵션을 잘 사용할 줄 몰라서 계속 이런 이슈가 발생하네요. 원인은 위에 붉은색으로 표시한 부분입니다. -F로 된것에 post로 보낼값을 하나씩 세팅해줘야 하네요.

curl -k -F "access_token=my token" -F "message=facebook integration test by curl" https://graph.facebook.com/me/feed

 요런식으로 하시면 됩니다. 테스트 마무리가 코 앞에 있습니다!

댓글

이 블로그의 인기 게시물

'xxx.exe' 프로그램을 시작할 수 없습니다. 지정된 파일을 찾을 수 없습니다.

goorm IDE에서 node.js 프로젝트로 Hello World Simple Server 만들어 띄워보기

애드센스 수익을 웨스턴 유니온으로 수표대신 현금으로 지급 받아보자.