How to add image from canvas as a post on Twitter?

oauth
api

#1

As in topic of this post - how can I add an image generated in canvas as a new twitter post? I want to share this image using user interface, from the client side. I would be very greatfull for instruction step by step.


#2

You’d need to use the media/upload endpoint to post the image to get a media_id and then use that when you call statuses/update. You’ll find that difficult to achieve from the client side as the Twitter API does not support CORS and you would have to have all of your API keys and secrets stored on the client as well.


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.