[AC-182] Facebook-Android SSO connectivity in 4.0.0.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Cannot Reproduce |
| Resolution Date | 2015-12-03T07:05:28.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Alloy, Appcelerator CLI, Documentation, Studio |
| Labels | android |
| Reporter | Aditya Goyal |
| Assignee | Mostafizur Rahman |
| Created | 2015-06-25T13:16:38.000+0000 |
| Updated | 2015-12-03T07:05:28.000+0000 |
Description
I've done all the configurations for facebook-android connectivity. Manifest file, hash key, app-id, app-name, etc.
But it does not return the required response from facebook. I read some native code related blogs and they mentioned something about a callback for fb.authorize() as *onActivityResult()*.
Please help, i have urgent requirement for this..
Hello, Tested this issue. Its not a valid bug. *Test Environments:* Appc CLI Version :5.0.1 Titanium SDK Version:5.0.0.GA Google Nexus 7 - 5.1.0 - API 22 - 800x1280 Appc Studio: Appcelerator Studio, build: 4.1.1.201507141126 Alloy: 1.7.6 Mac OS X,Version = 10.10.1. *Test Steps:* 1.Create a alloy project 2.In alloy.js paste following code:
3. Go to *the app / platform/android/res/values/strings.xml* file. Paste following codeAlloy.Globals.Facebook = require('facebook');4.Integrate [Facebook module](http://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook) in tiapp.xml. 5. Run project. *Test code:* *index.xml*<resources> <string name="facebook_app_id">......your...app id......</string> </resources>*injex.js*<Alloy> <Window backgroundColor="white"> <LoginButton id="fbLogin" module="facebook" top="25" /> <LikeButton id="fbLike" module="facebook" top="100" /> </Window> </Alloy>*Test Result:* Facebook module is [working](http://i62.tinypic.com/2i113pg.png) as expected. Thanks