Titanium JIRA Archive
Appcelerator Community (AC)

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

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-12-03T07:05:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Appcelerator CLI, Documentation, Studio
Labelsandroid
ReporterAditya Goyal
AssigneeMostafizur Rahman
Created2015-06-25T13:16:38.000+0000
Updated2015-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..

Comments

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

JSON Source