View Full Version : facebook api

10 Feb 2011, 8:50 PM
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...

11 Feb 2011, 4:44 AM
You can just use the facebook Graph API and a simple JSONReader:


13 Feb 2011, 11:07 PM
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
I am interested in seeing some examples as well.

24 Feb 2011, 1:16 PM
This is how I got my friends list:

Ext.regModel("Friends", {
fields: [
{ name: "id", type: "int" },
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"
// 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.

24 Feb 2011, 1:50 PM
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?


Jeff B.

24 Feb 2011, 2:25 PM
That much I have not done. I will look into what I think would be the best way and get back to you :)

5 Mar 2013, 9:54 PM
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.