"myAccessToken" should be "#myAccessToken#" ???
just a thought...
Andrew.
<cfhttpparam type="formfield" name="access_token"
value="myAccessToken">
> Hi,
>
> I'm playing with the facebook graph api, and was attempting to send an
> image to my wall. According to facebook, you just send the image,
> your access key & a caption... see below my code:
>
> <cfoutput>
> <cfif fileexists("D:\myPath\images\menubar.jpg")>
> <cfhttp method="post" url="https://graph.facebook.com/me/photos"
> multipart="yes">
> <cfhttpparam type="formfield" name="access_token"
> value="myAccessToken">
> <cfhttpparam type="file" name="source" file="D:\myPath\images\menubar.
> jpg">
> <cfhttpparam type="formfield" name="message" value="this is a test
> picture.">
> </cfhttp>
> <cfdump var="#cfhttp#">
> </cfif>
> </cfoutput>
>
> When I run this, I get a 400 bad request error ("OauthException an
> unknown error occurred" returns from facebook). Does anyone know what
> I'm doing wrong? Thanks!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340362
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm