-
10 Feb 2011 8:50 PM #1
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
-
11 Feb 2011 4:44 AM #2
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
-
13 Feb 2011 11:07 PM #3
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....
-
24 Feb 2011 12:21 PM #4
I am interested in seeing some examples as well.
-
24 Feb 2011 1:16 PM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
24 Feb 2011 1:50 PM #6
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.
-
24 Feb 2011 2:25 PM #7Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
5 Mar 2013 9:54 PM #8
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
-
Ext.ux.BoxSelect (like the Facebook's one)
By tintin in forum Ext 2.x: User Extensions and PluginsReplies: 106Last Post: 19 Oct 2012, 5:10 AM -
Facebook Application using GXT
By ozgurcd in forum Ext GWT: Help & Discussion (1.x)Replies: 0Last Post: 9 Feb 2009, 6:58 PM -
Facebook-like Autocomplete
By plightbo in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 31 Jul 2008, 8:11 AM -
whereyougonnabe: Facebook app using Ext?
By rstuven in forum Community DiscussionReplies: 1Last Post: 22 Apr 2008, 2:43 PM -
Facebook-like autocomplete?
By plightbo in forum Ext 2.x: User Extensions and PluginsReplies: 4Last Post: 20 Mar 2008, 7:13 AM


Reply With Quote