skip to Main Content

sending a image attachment to facebook chat with curl does't work – Facebook api

i'm trying to send a image attachment to a facebook chat with curl. I got the instructions form (https://developers.facebook.com/docs/messenger-platform/send-api-reference/image-attachment) curl -F 'recipient={"id":"YYYY"}' -F 'message={"attachment":{"type":"image", "payload":{}}' -F 'filedata=@/home/dominic/site/drophere/hitcat.jpg;type=image/jpeg' "https://graph.facebook.com/v2.6/me/messages?access_token=XXXX" after I ececuted it, this error message appear: {"error":{"message":"(#100) Message cannot be…

VIEW QUESTION

How to add images to existing item with ebay API

I am using ebay-sdk for python. I uploaded some images to eBay Picture Services(EPS) successfully using the below code: from ebaysdk.trading import Connection as Trading api = Trading(config_file='ebay.yaml', siteid=71) def upload_images(image_url): response = api.execute('UploadSiteHostedPictures', {"ExternalPictureURL": image_url, "PictureSet": "Supersize"}) return response.content…

VIEW QUESTION
Back To Top
Search