1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    9
    Vote Rating
    0
    maulik is on a distinguished road

      0  

    Default facebook api

    facebook api


    hi...
    good morning all.....
    hey guys any one have facebook api of sencha...
    i want share some controls on facebook but i dont know how to share it??
    so plz help me..
    any one have facebook api plz post it...
    sorry 4 my english...

    thank you..
    rply me as soon as possible...
    plzzzzzz

  2. #2
    Sencha User
    Join Date
    Jul 2010
    Posts
    6
    Vote Rating
    0
    moosgummi is on a distinguished road

      0  

    Default


    You can just use the facebook Graph API and a simple JSONReader:

    http://developers.facebook.com/docs/reference/api
    http://dev.sencha.com/deploy/touch/d...ata.JsonReader

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    9
    Vote Rating
    0
    maulik is on a distinguished road

      0  

    Default


    thanx for reply...
    i checked both url but i dont understand how to do that..
    plz post any working example...
    or any facebook api example which shared sencha data...
    thanx again....

  4. #4
    Touch Premium Member
    Join Date
    Nov 2010
    Posts
    19
    Vote Rating
    0
    jeffbvox is on a distinguished road

      0  

    Default


    I am interested in seeing some examples as well.

  5. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Vote Rating
    817
    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

      0  

    Default


    This is how I got my friends list:

    Code:
    Ext.regModel("Friends", {
    	fields: [
    		{ name: "id",   type: "int" },
    		"name"
    	]
    });
    var store = new Ext.data.Store({
    	model: 'Friends',
    	proxy: {
    		type: "scripttag",
    		url : 'https://graph.facebook.com/me/friends',
    		startParam: "offset",
    		//wanted to use baseParams on the Store
    		//but couldn't get it to send the token
    		extraParams: {
    			access_token: "2227470867|2.DAzFjFoQvPVW27dPNU5yhA__.3600.1298584800-504414317|gVQL3i7LZpr3B8RG4fP_pRxfweM"
    		},
    		reader: {
    			type: 'json',
    			root: "data"
    		}
    	}
    });
    store.load();
    // this will fetch 25 records, do store.nextPage() to get the
    //next 25 records (or remainder) or set store.pageSize = 50;
    //or however many you want on each page.
    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.

  6. #6
    Touch Premium Member
    Join Date
    Nov 2010
    Posts
    19
    Vote Rating
    0
    jeffbvox is on a distinguished road

      0  

    Default


    Thanks for posting the code Mitchell! Question though, how do you take care of authenticating the facebook user? The only way I can tell is to use a popup and a return URL, which kind of breaks the touch app up and is a little messy looking. Is there a way to host the email and password text boxes in the touch app and then authenticate using javascript only?

    Thanks!

    Jeff B.

  7. #7
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Vote Rating
    817
    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

      0  

    Default


    That much I have not done. I will look into what I think would be the best way and get back to you
    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.

  8. #8
    Sencha User
    Join Date
    Jan 2012
    Posts
    14
    Vote Rating
    0
    indra00 is on a distinguished road

      0  

    Default Facebook Integration with Sencha

    Facebook Integration with Sencha


    Hi Mitchell, your last post is 2 yrs old , I hope you have done something in that regard to integrate with facebook. All I need is in my mobile app there will be a share button on clicking which it will open a overlay asking the user for login to facebook and after authenticating it will post a status onto the user's page.

    Any help how to approach the problem will be appreciated.

Similar Threads

  1. Ext.ux.BoxSelect (like the Facebook's one)
    By tintin in forum Ext 2.x: User Extensions and Plugins
    Replies: 106
    Last Post: 19 Oct 2012, 5:10 AM
  2. Facebook Application using GXT
    By ozgurcd in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 9 Feb 2009, 6:58 PM
  3. Facebook-like Autocomplete
    By plightbo in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 31 Jul 2008, 8:11 AM
  4. whereyougonnabe: Facebook app using Ext?
    By rstuven in forum Community Discussion
    Replies: 1
    Last Post: 22 Apr 2008, 2:43 PM
  5. Facebook-like autocomplete?
    By plightbo in forum Ext 2.x: User Extensions and Plugins
    Replies: 4
    Last Post: 20 Mar 2008, 7:13 AM

Thread Participants: 4

Tags for this Thread