Has anyone successfully used the social.js in alloy to post a status/message to twitter - I'm having limited success using the documented examples:
var social = require('alloy/social').create({ consumerSecret: '*******************', consumerKey: '*********************' }); if(!social.isAuthorized()) { social.authorize(); } social.share({ message: "Status update", success: function(e) {alert('Success!');}, error: function(e) {alert('Error!');} });
My Secret & Key are correct as I'm sure are all the other parameters on the Twitter app page (blank callback URL etc).
I get the Twitter pages load and enter the Tw username/password and hit Authorize but then I'm offered a PIN number and I can't close the twitter windows. I'm trying to get pin less oAuth and (from what I've read) the social.js should be pin-less?
Has anyone else encountered and overcome this? I've been toying with it for weeks now!
Any help is greatly appreciated.
Best
Wayne
Application type: mobile Titanium SDK: 3.2.0.v20131018154951 Platform & version: Android 2.3+ Device: Android (4.2.2) Host Operating System: OSX 10.9 Titanium Studio: 3.2.0.201312121611