How to post image on twitter in Phonegap using javascript

后端 未结 2 1300
鱼传尺愫
鱼传尺愫 2021-02-05 15:59

I\'m currently implementing a web smartphone application with Phonegap. On this application, users can post images they take with the phone camera on Facebook. This feature has

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-05 16:31

    For anyone trying to post images to Twitter using client JS, I was able to post to twitter using the solution by gary-buynary-co-za (https://github.com/bytespider/jsOAuth/pull/11) at the end of this forum. Pretty much ended up using Phonegap FileTransfer and FileTransferOptions objects for transferring image to twitter api, but used jsOAuth for preparing FileTransferOptions headers and signatures. The solution could definitely be cleaned up though.

提交回复
热议问题