Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3221] Facebook.authorize not firing on Android with 1.6.0

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2016-08-27T13:03:33.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsAndroid
Labelsn/a
ReporterBrice Lechatellier
AssigneeIngo Muschenetz
Created2011-04-15T03:39:50.000+0000
Updated2017-03-20T17:00:00.000+0000

Description

Nothing happens on the Android emulator when firing the authorize call. (Same code works on iOS)

Ti.Facebook.appid = 'xxx';
Ti.Facebook.permissions = ['publish_stream'];
Ti.Facebook.authorize();

But some action is happening behind the scenes.

[TRACE] W/InputManagerService( 64): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@450d0020
[TRACE] D/Facebook-WebView( 290): Webview loading URL: https://m.facebook.com/dialog/oauth?display=touch&;client_id=xxx&scope=publish_stream&type=user_agent&redirect_uri=fbconnect%3A%2F%2Fsuccess
[TRACE] D/Facebook-WebView( 290): Webview loading URL: http://www.facebook.com/connect/uiserver.php?app_id=xxx&;method=permissions.request&display=touch&next=fbconnect%3A%2F%2Fsuccess&type=user_agent&fbconnect=1&perms=publish_stream
[TRACE] D/Facebook-WebView( 290): Redirect URL: http://www.facebook.com/connect/uiserver.php?app_id=xxx&;method=permissions.request&display=touch&next=fbconnect%3A%2F%2Fsuccess&type=user_agent&fbconnect=1&perms=publish_stream
[TRACE] D/Facebook-WebView( 290): Webview loading URL: http://touch.facebook.com/login.php?app_id=xxx&;cancel=fbconnect%3A%2F%2Fsuccess%2F%3Ferror_reason%3Duser_denied%26error%3Daccess_denied%26error_description%3DThe%2Buser%2Bdenied%2Byour%2Brequest.&fbconnect=1&next=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Fuiserver.php%3Fmethod%3Dpermissions.request%26app_id%3Dxxx%26display%3Dtouch%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26fbconnect%3D1%26perms%3Dpublish_stream%26from_login%3D1&rcount=1
[TRACE] D/Facebook-WebView( 290): Redirect URL: http://touch.facebook.com/login.php?app_id=xxx&;cancel=fbconnect%3A%2F%2Fsuccess%2F%3Ferror_reason%3Duser_denied%26error%3Daccess_denied%26error_description%3DThe%2Buser%2Bdenied%2Byour%2Brequest.&fbconnect=1&next=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Fuiserver.php%3Fmethod%3Dpermissions.request%26app_id%3Dxxx%26display%3Dtouch%26redirect_uri%3Dfbconnect%253A%252F%252Fsuccess%26type%3Duser_agent%26fbconnect%3D1%26perms%3Dpublish_stream%26from_login%3D1&rcount=1

Comments

  1. Hans Knöchel 2016-08-27

    Fixed in Ti.Facebook 5.0.0 and later.
  2. Lee Morris 2017-03-20

    Closing ticket as fixed.

JSON Source