I've used the social plugin on iOS, and that works great for posting an image directly from my app to both sites.
However, it seems that plugin only works on iOS, and even then it only works if the user has signed into those services in iOS's settings app.
So is there a way to easily post images directly to FB and Twitter from within the app, without having to upload the image somewhere else first?
I've seen that there is an update_with_media method for Twitter, but I don't see any sign of it in the Twitter sample code:
It says "Up to max_media_per_upload files may be specified in the request, each named media. Supported image formats are PNG, JPG and GIF. Animated GIFs are not supported. This data must be either the raw image bytes or encoded as base64." How would we encode our images like this in Corona?
As for Facebook, all code I see implies that the image has to be hosted online, and you provide a url. But seeing as the native plugin can post the image directly, is it possible for us to do this in a dialog post?
Edit: I should add, I want the image to be included as part of a feed post, not just a regular image upload.