Titanium JIRA Archive
Appcelerator Community (AC)

[AC-182] Facebook-Android SSO connectivity in 4.0.0.

GitHub Issuen/a
ResolutionCannot Reproduce
Resolution Date2015-12-03T07:05:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Appcelerator CLI, Documentation, Studio
ReporterAditya Goyal
AssigneeMostafizur Rahman


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..


  1. Rakhi Mitro 2015-09-20

    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: 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:
       Alloy.Globals.Facebook = require('facebook');
    3. Go to *the app / platform/android/res/values/strings.xml* file. Paste following code
           <string name="facebook_app_id">......your...app id......</string>
    4.Integrate [Facebook module](http://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook) in tiapp.xml. 5. Run project. *Test code:* *index.xml*
           <Window backgroundColor="white">
               <LoginButton id="fbLogin" module="facebook" top="25" />
               <LikeButton id="fbLike" module="facebook" top="100" />
       $.fbLike.objectId = "http://www.facebook.com/appcelerator";
       if (OS_ANDROID) {
           $.index.fbProxy = Alloy.Globals.Facebook.createActivityWorker({lifecycleContainer: $.index});
    *Test Result:* Facebook module is [working](http://i62.tinypic.com/2i113pg.png) as expected. Thanks

JSON Source