Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Social built-ins showing error

$
0
0

Am using "social" built-ins to post a tweet and Version 3.1.2 Alloys and Android Emulator, created an app in twitter and Read/Write/Access direct messages permission are set, below is my code

index.js
 
var social = require('alloy/social').create({
    consumerSecret: 'xxx',
    consumerKey: 'yyy'
});
 
social.share({
    message: "Hi, Gowtham!",
    success: function(e) {alert('Success!');},
    error: function(e) {alert('Error!');}
}); 
 
$.index.open();
 
index.xml
 
<Alloy>
    <Window class="container">
        <Label id="label">Hello, World</Label>
    </Window>
</Alloy>
 
index.tss
 
".container": {
    backgroundColor:"white"
},
"Label": {
    width: Ti.UI.SIZE,
    height: Ti.UI.SIZE,
    color: "#000"
}
And am receiving this exception:
[ERROR][TiHttpClient( 1891)] (TiHttpClient-4) [4451,4451] HTTP Error (org.apache.http.client.HttpResponseException): Gone
[ERROR][TiHttpClient( 1891)] org.apache.http.client.HttpResponseException: Gone
[ERROR][TiHttpClient( 1891)]    at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:252)
[ERROR][TiHttpClient( 1891)]    at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:211)
[ERROR][TiHttpClient( 1891)]    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)
[ERROR][TiHttpClient( 1891)]    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637)
[ERROR][TiHttpClient( 1891)]    at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1271)
[ERROR][TiHttpClient( 1891)]    at java.lang.Thread.run(Thread.java:856)
[ERROR][TiAPI   ( 1891)]  Social.js: FAILED to send a request!

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>