Hi,
I'm trying to post a photo to a FB page via the facebook connector using
ESB 4.9.0. I added the proxy in[1]
I'm sending following request through the postman rest client
> POST /services/multipart?pageId=562960547187253 HTTP/1.1
> Host: 10.100.7.26:8280
> Action: urn:addPhotoToPage
> Cache-Control: no-cache
> Postman-Token: b24c8c4d-8823-37a3-9f7e-0b7242dd2c1c
> Content-Type: multipart/form-data;
> boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
> ----WebKitFormBoundary7MA4YWxkTrZu0gW
> Content-Disposition: form-data; name="source"; filename="images.jpg"
> Content-Type: image/jpeg
>
> ----WebKitFormBoundary7MA4YWxkTrZu0gW
> Content-Disposition: form-data; name="access_token"
>
> CAANXsShua0kBANHccTVW8peal7dn8kBSZApjm2OWsoYNfyix5WmUZAJxR6Wdi7OB49aKZBCmWpVlzQi1IcF04kulGzseMQEFV0JFCMO7CEOV2dRBfoZCc2icOCZAEoWSFwv4kR1EZBZBrYEy61BR1wzf7Iy5kmizhKV8pc9irjVrkFbWZA8noKZBWDKYdjpaBstUZA0o2aE1n30NnT4YN9vk1f
> ----WebKitFormBoundary7MA4YWxkTrZu0gW
But I'm always getting the below exception
> {"error":{"message":"(#324) Requires upload
> file","type":"OAuthException","code":324,"fbtrace_id":"BgISg8XM9PN"}}
Am I missing something here? I tried with url parameter as well. But I'm
getting same error with that as well.
[1] -
https://github.com/wso2/esb-connectors/blob/master/facebook/facebook-connector/facebook-connector-1.0.0/org.wso2.carbon.connector/src/test/resources/artifacts/ESB/config/proxies/facebook/multipart.xml
Thanks
--
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware | wso2.com
Mobile +94712756809
Blog alokayasoya.blogspot.com
About http://about.me/thusithathilina
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev