-
20 Apr 2012 5:28 AM #1
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?
-
20 Apr 2012 6:45 AM #2
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
-
20 Apr 2012 6:53 AM #3
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
-
20 Apr 2012 7:16 AM #4
html is a string not an array

-
20 Apr 2012 8:25 AM #5
means I remove [] and code the script or how can i write the way we wrtie script in html


Reply With Quote