Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

facebook createLoginButton ends with blank window and socket timeout..

I am trying to use the kitchen sink method of connecting to facebook, I have this piece of code running in the android emulator (2.1 & 2.2) mobile sdk 1.4.0

keys mangled on purpose..

var button = Titanium.Facebook.createLoginButton({
    'id':'b',
    'style':'normal',
    'apikey':'ksdjsklajdaklsjdkajlsdj',
    'secret':'asassdfsdfsdfdsfsdfsdfs'
});
button.addEventListener('login',function()
{
    console.info("LOGIN");
});
button.addEventListener('logout',function()
{
    console.info("LOGOUT");

});

win.add(button);

the problem is, I hit the connect button, I get the facebook connect window opened in the emulator, but it is blank..

I check the trace in titanium and find out there is a socket timeout..

[TRACE] D/FBDialog( 458): FBDialog onStart
[TRACE] D/FBDialog( 458): FBDialog onResume
[TRACE] D/dalvikvm( 458): GC_EXTERNAL_ALLOC freed 3417 objects / 448400 bytes in 106ms
[TRACE] E/TiUIView( 458): (main) [415,1620502] TAP, TAP, TAP
[TRACE] I/ActivityManager( 62): Displayed activity com.test5/ti.modules.titanium.facebook.FBActivity: 765 ms (total 765 ms)
[TRACE] D/SntpClient( 62): request time failed: java.net.SocketException: Address family not supported by protocol
[TRACE] D/SntpClient( 62): request time failed: java.net.SocketException: Address family not supported by protocol
[TRACE] D/SntpClient( 62): request time failed: java.net.SocketException: Address family not supported by protocol

what am I doing wrong ? what is the solution ?

— asked November 28th 2010 by Moshe Marciano
  • android
  • blank
  • connect
  • createloginbutton
  • facebook
  • timeout
0 Comments

1 Answer

  • I have the same problem… is the API out ?

    — answered November 28th 2010 by MILLET Alexandre
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.