Quantcast
Viewing all articles
Browse latest Browse all 8068

Alloy Social And Twitter

Hello, I'm using the Social module to share with tweets.

var social = require('alloy/social').create({
    consumerSecret: 'xxxxxxxxxxxxxxxxxxxx',
    consumerKey: 'xxxxxxxxxxxx'
});
 
if(!social.isAuthorized()) {
    social.authorize();
}
 
social.share({
    message: "Send some text",
    success: function(e) {
    alert('Tweet sent')},
    error: function(e) {
    Ti.API.info('Error: '+e);
        alert("Error" );
     }
});
 
social.deauthorize();
The window of twitter is displayed, but it stay blocked (I can't close it) and on my CLI I have : "social.js Failed to getResquestToken. Failed to validate oauth signature and token" ...

ca any one help me please ? or if there is another module ? thank you


Viewing all articles
Browse latest Browse all 8068

Trending Articles