1. #1
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Israel
    Posts
    115
    Vote Rating
    1
    sagoig is on a distinguished road

      0  

    Default Any facebook-connect phonegap remote build sencha touch examples :) ?

    Any facebook-connect phonegap remote build sencha touch examples :) ?


    I'm working on a project which needs to connect user to his fb account,
    I got links from Kurt001 ( thank you! ) for this example:
    https://github.com/bdunklau/infinite-beach-9173/tree/master/www

    B
    ut I'm looking for an example of someone who implemented it on sencha touch,
    Thank you in advanced !

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,652
    Vote Rating
    901
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      1  

    Default


    Shouldn't be hard to see how that git repo accomplished it and port it to your app.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Israel
    Posts
    115
    Vote Rating
    1
    sagoig is on a distinguished road

      0  

    Default


    Done works very good

  4. #4
    Sencha User
    Join Date
    Apr 2014
    Posts
    11
    Vote Rating
    0
    johnestar is on a distinguished road

      0  

    Default


    Can you provide some of your code as example? I don't think it is that simple!

  5. #5
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Israel
    Posts
    115
    Vote Rating
    1
    sagoig is on a distinguished road

      0  

    Default


    Hey, are you stuck at some point? where you stand at? let me know and I will be happy to help after using this for a few months now..

  6. #6
    Sencha User
    Join Date
    Jun 2014
    Posts
    53
    Vote Rating
    0
    carlo123 is on a distinguished road

      0  

    Default


    Hi Sagoig, I used Sencha Architect (touch) and I need to implement the facebook login. I think to use phonegap acebook plugin but I can not understand how to use it. Can you help me please?
    I know how instal it and after how to configure config.xml....but after? wich is the code to insert in sencha?

    thank you
    Carlo

  7. #7
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Israel
    Posts
    115
    Vote Rating
    1
    sagoig is on a distinguished road

      0  

    Default


    Hey Carlo, have you successfully compiled using phonegap already? (I use phonegap build online, it's very nice and fast)

  8. #8
    Sencha User
    Join Date
    Jun 2014
    Posts
    53
    Vote Rating
    0
    carlo123 is on a distinguished road

      0  

    Default


    No for this plugin...but I have used yet an other plugin (camera) and function perfectly.
    Now I would to use also the facebook plugin but i don't know after the code to insert in sencha....Do you have an example? Have you used a code to do a login in Facebook?

    Carlo

  9. #9
    Sencha User joshmorony's Avatar
    Join Date
    Jan 2014
    Posts
    36
    Vote Rating
    4
    joshmorony is on a distinguished road

      0  

    Default


    Hi Carlo, I wrote a blog post about using the Facebook Connect plugin with Sencha Touch, maybe it will help you:

    http://www.joshmorony.com/posting-to...avascript-sdk/

    My eBook also goes much more in depth into Facebook integration.

  10. #10
    Sencha User
    Join Date
    Jun 2014
    Posts
    53
    Vote Rating
    0
    carlo123 is on a distinguished road

      0  

    Default


    I Josh, Thank for your help. I Install the cordova plugin and after I insert your example code:

    but I received this error:
    FB is not defined

    I tried to use before your code to use:
    Code:
    window.fbAsyncInit = function()
    {
        console.log('Ref: '+1);
        FB.getLoginStatus(function(response) {
     
            if (response.authResponse) {
     
                FB.ui({
                    method: 'feed',
                    link: 'http://runtap.com',
                    caption: 'RunTap'
                }, function(response){});
     
            }
            else {
     
                FB.login(function(response) {
                    if (response.authResponse) {
                        FB.ui({
                            method: 'feed',
                            link: 'http://runtap.com',
                            caption: 'RunTap'
                        }, function(response){});
                    }
                }, {scope: 'basic_info'});
     
            }
        },true);
    
    };
    the fbAsyncInit....but with this I don't see the console log and so I think that the code don't go with the fbAsyncInit...

    Do you know why?
    thank you