1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    36
    Vote Rating
    -2
    arpit2438735 is an unknown quantity at this point

      0  

    Default Unanswered: Login with facebook

    Unanswered: Login with facebook


    Login with facebook

    I want to implement Login using facebook as I register my app in Facebook Developer but fail to use the SDK code in Sencha so Please Help me out?

  2. #2
    Sencha User bluehipy's Avatar
    Join Date
    Mar 2010
    Location
    Romania
    Posts
    606
    Vote Rating
    26
    Answers
    66
    bluehipy will become famous soon enough bluehipy will become famous soon enough

      0  

    Default


    You are very very vague but:


    Code:
     <script>
          window.fbAsyncInit = function() {
            FB.init({
              appId      : '<?= YOUR_APP_ID ?>',
              status     : true, 
              cookie     : true,
              xfbml      : true,
              oauth      : true,
            });
    
    
            FB.Event.subscribe('auth.login', function(response) {
              //entr point for your app to start or do something after log in
    
            });
          };
    
    
          (function(d){
             var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
             js = d.createElement('script'); js.id = id; js.async = true;
             js.src = "//connect.facebook.net/en_US/all.js";
             d.getElementsByTagName('head')[0].appendChild(js);
           }(document));
        </script>

    be more descriptive

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    36
    Vote Rating
    -2
    arpit2438735 is an unknown quantity at this point

      0  

    Default


    How to implement I mean I just write the code in
    items: [
    {
    xtype: 'panel',
    flex: 1,
    html:[ '<div id="header"><h2>Facebook app for tweet keywords</h2></div><span>Login with facebook</span>', '<div id="fb-root"></div>']

    I add in html but it not working

  4. #4
    Sencha User bluehipy's Avatar
    Join Date
    Mar 2010
    Location
    Romania
    Posts
    606
    Vote Rating
    26
    Answers
    66
    bluehipy will become famous soon enough bluehipy will become famous soon enough

      0  

    Default


    html is a string not an array

  5. #5
    Sencha User
    Join Date
    Apr 2012
    Posts
    36
    Vote Rating
    -2
    arpit2438735 is an unknown quantity at this point

      0  

    Default


    means I remove [] and code the script or how can i write the way we wrtie script in html

Thread Participants: 1

Tags for this Thread