Facebook want an image at a URL to get. Clearly uploading an image to a file service, getting the URL to it and providing that to the Facebook API call may be the simplest way to do this. They document that you can use a URL or you can upload file. The problem is there are no good examples of using the file method.
I don’t know if the showDialog method will work with this, but the facebook.request() API using the /photos endpoint should work.
That was used to send photos to twitter in the early days. You probably could adapt this to create the multipart form data and then use the stackoverflow post to figure out how to upload it via the Graph API /photos end point.
Facebook want an image at a URL to get. Clearly uploading an image to a file service, getting the URL to it and providing that to the Facebook API call may be the simplest way to do this. They document that you can use a URL or you can upload file. The problem is there are no good examples of using the file method.
I don’t know if the showDialog method will work with this, but the facebook.request() API using the /photos endpoint should work.
That was used to send photos to twitter in the early days. You probably could adapt this to create the multipart form data and then use the stackoverflow post to figure out how to upload it via the Graph API /photos end point.