[AC-4760] Can't connect android devices on facebook
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2017-01-29T17:42:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Andreas Pingas |
Assignee | Shak Hossain |
Created | 2017-01-29T11:30:29.000+0000 |
Updated | 2017-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!
Which Ti.Facebook Android version are you using?
hello thank you for your response. i am using the latest one. (SDK 6.0.1)
Not SDK version, Ti.Facebook version :-)
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.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.