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
    Answers
    66
    Vote Rating
    26
    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
    Answers
    66
    Vote Rating
    26
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi