Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4760] Can't connect android devices on facebook

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2017-01-29T17:42:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterAndreas Pingas
AssigneeShak Hossain
Created2017-01-29T11:30:29.000+0000
Updated2017-01-30T12:47:42.000+0000

Description

Although i can connect the IOS devices. i follow the steps on appcelerators website. Additional Android Setup Steps Since Facebook module v4.0.0, for the Android platform, you need to: Add the Facebook Login activity to the Android manifest Add the Facebook App ID to the Android resources string.xml file Create a Facebook proxy and associate it with the current active activity I can establish a connection (and when i connect to the apps i have created on facebook it seems OK) but i dont get a call back that is OKAY. on the i am working on it does not connect. and i get this error **[ERROR] : TiBaseActivity: (main) [1,68729] Error dispatching onActivityResult event: Attempt to invoke interface method 'boolean com.facebook.CallbackManager.onActivityResult(int, int, android.content.Intent)' on a null object reference [ERROR] : TiBaseActivity: java.lang.NullPointerException: Attempt to invoke interface method 'boolean com.facebook.CallbackManager.onActivityResult(int, int, android.content.Intent)' on a null object reference* * What can i do to fix this problem? Thank you in advance!

Comments

  1. Hans Knöchel 2017-01-29

    Which Ti.Facebook Android version are you using?
  2. Andreas Pingas 2017-01-29

    hello thank you for your response. i am using the latest one. (SDK 6.0.1)
  3. Hans Knöchel 2017-01-29

    Not SDK version, Ti.Facebook version :-)
  4. Hans Knöchel 2017-01-29

    Checked the source. Pretty sure you forgot to call the initialize() method, which initializes the callback manager that is used to handle Facebook requests. Resolving as Invalid.
  5. Andreas Pingas 2017-01-30

    We are using Ti.Facebook version 6.0.1 where initialize does not exist. I get to the point where you can put username and password, however when i submit the form i get no results. It seems that it cannot establish the connection.

JSON Source