2015-01-21 2 views
5

나는 다음 ColdFusion에서-코드와 페이스 북 그래프 API를 통해 앨범에 이미지를 게시하기 위해 노력하고있어 "파람의 no_story 부울해야"내가 no_story=true를 생략하면페이스 북 그래프 API 및 ColdFusion에서 :

<cfhttp method="post" url="https://graph.facebook.com/#albumid#/photos/"> 
    <cfhttpparam type="formfield" name="access_token" value="#access_token#" /> 
    <cfhttpparam type="file" name="source" file="#img_dir#\dummy.jpg" /> 
    <cfhttpparam type="formfield" name="message" value="foo bar" /> 
    <cfhttpparam type="formfield" name="no_story" value="true" /> 
</cfhttp> 

, 모든 것이 완벽하게 작동하지만 내 벽에 게시물이 나타나지 않도록이 속성이 필요합니다.

{"error":{"message":"(#100) Param no_story must be a boolean","type":"OAuthException","code":100}} 

HTTP/1.1 400 Bad Request Content-Type: text/javascript; charset=UTF-8 WWW-Authenticate: OAuth "Facebook Platform" "invalid_request" "(#100) Param no_story must be a boolean" Access-Control-Allow-Origin: * X-FB-Rev: 1568945 Pragma: no-cache Cache-Control: no-store Facebook-API-Version: v2.2 Expires: Sat, 01 Jan 2000 00:00:00 GMT X-FB-Debug: Vt7Viz/nlNfsQDDfNKtVuBjfgjDiWPFxYb0TAEpJJa9NjrR+TrEB8nuMOerQJYMX9E2e1CeqfBZT70/1KODErg== Date: Wed, 21 Jan 2015 12:13:31 GMT Connection: close Content-Length: 98 

내가 변화 다음 시도 : :이 오류가있어 이들의

<cfhttpparam type="formfield" name="no_story" value="TRUE" /> 
<cfhttpparam type="formfield" name="no_story" value="True" /> 
<cfhttpparam type="formfield" name="no_story" value="#true#" /> 
<cfhttpparam type="formfield" name="no_story" value="#JavaCast('boolean', true)#" /> 
<cfhttpparam type="formfield" name="no_story" value="1" /> 
<cfhttpparam type="formfield" name="no_story" value="Yes" /> 

없음 작동하지 않습니다.

+0

게시 요청 본문을 표시 할 수 있습니까? 실제로 브라우저가 어떤 데이터를 게시했는지 보여줄 수 있습니까? 브라우저에서 dev 도구를 사용하여 찾으십시오. – haxtbh

+0

@haxtbh 불행하게도 이것은 서버 측에서 발생합니다. 나는 어떤 데이터가 게시되는지 볼 수있는 방법을 찾고 있습니다. – Boris

+1

여기에서 현재 상태 확인 : https://developers.facebook.com/bugs/855430617846913/ – Boris

답변

-1

테스트하기가 어려우나 부울 값과 반대되는 텍스트를 전달한 것 같습니다. 그런 다음

<cfset mytruebool = True> 

: 어쩌면 시도

<cfhttpparam type="formfield" name="no_story" value="#mytruebool#" /> 

의 주요 차이점은 CFSET 할당에 따옴표가되는 없습니다.

+0

슬프게도 작동하지 않습니다. ( – Boris

+1

몇 시간 전에 Steve Oliphant가 https://developers.facebook.com/bugs/855430617846913/에 그럴듯한 해결책을 게시했습니다. –