I play with facebook api graphics and try to send the image to my wall. According to facebook, you just send the image, your passkey and signature ... 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 ran this, I get an error with error 400 ("OauthException with unknown error" is returned from facebook). Does anyone know what I'm doing wrong? Thank you
source
share