Unable to implement facebook api

You must Login before you can answer or comment on any questions.

Hi frenz i am unable to implement fb api. I simply wrote an test code given in doc ,i generated an appid too. But while running its giving me below error

Error: Traceback (most recent call last): File "/Users/nupur/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/iphone/builder.py", line 1335, in main execute_xcode("iphonesimulator%s" % link_version,["GCC_PREPROCESSOR_DEFINITIONS=LOG__ID=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s %s" % (log_id,sdk_version,debugstr,kroll_coverage)],False) File "/Users/nupur/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/iphone/builder.py", line 1241, in execute_xcode output = run.run(args,False,False,o) File "/Users/nupur/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/iphone/run.py", line 41, in run sys.exit(rc)

please help me out

3 Answers

Hello Nupur,

This Builder.py is giving error many times for me also and i am just doing

1). Clean and build project 2).Close simulator 3)run

and it was mostly solved this problem.

for facebook you can refer This.

hope this works....

— answered 10 months ago by Sarafaraz Babi
answer permalink
8 Comments
  • Hi Sarafaraz below is my code can u plz check n tell whether i am doing nething wrong

    var win = Ti.UI.createWindow();

    Ti.Facebook.appid = '[250930435025949]';

    Ti.Facebook.permissions =['publish_stream'];

    Ti.Facebook.addEventListener('login',function(e){ if(e.success) { alert("sucessfully loggedin"); } else if(e.error) { alert(e.error); } else(e.cancelled) { alert("cancelled"); }

    })

    Ti.Facebook.authorize(); win.open();

    — commented 10 months ago by Nupur Gupta

  • Hey Nupur i am suggesting you to please use code block for posting your code...so it looks better...and let me check your code, give me some time..

    — commented 10 months ago by Sarafaraz Babi

  • kitchen Sink Facebook.

    — commented 10 months ago by Sarafaraz Babi

  • Show 5 more comments

Hi Nupur, for better understanding just refer Kitchen Sink Application for titanium and see facebook.js and related JAVA SCRIPT files from there onwards.

— answered 10 months ago by Ashish Nigam
answer permalink
3 Comments
  • Thanks Ashish will refer that

    — commented 10 months ago by Nupur Gupta

  • I imported kitchen sink app but there is no facebook.js file in resources

    — commented 10 months ago by Nupur Gupta

  • Check in example directory inside resources directory or search for facebook at app level.

    — commented 10 months ago by Ashish Nigam

Check in example directory inside resources directory or search for facebook at app level.

— answered 10 months ago by Ashish Nigam
answer permalink
2 Comments
  • Sarfaraz suggested me to replace my mobile sdk after download how shud i replace it

    — commented 10 months ago by Nupur Gupta

  • No need of replacing Mobile SDK, just open Kitchen Sink and check example directory where you will find facebook.js and other related JS files.

    — commented 10 months ago by Ashish Nigam

Your Answer

Think you can help? Login to answer this question!