Issue with acesstoken in faceook login/connect in Titanium ?

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

I want to implement the Facebook connect in my application.

While implementing the Fb connect I am facing a strange issue with the facebook connect when i try to get the acesstoken using


My App ID/API Key for testing/development phase is


and app_secret is


when I try to implement facebook login via web and mobile I am getting two seperate acess_codes

For Web :

For Mobile
Which doesn't match. Except the few 5 alphabets and last 3 alphabets.

— asked 3 years ago by Sahil Grover
  • Titanium.Facebook and webView generate their own AccessToken and can you tell us what you want to do ?.

    — commented 3 years ago by Nitin Chavda

  • @nitin I am building an application for the website and getting data from the same server on which website runs. We can assume that I am using the access token as the password for login, in case user wants to use facebook connect. If the acesstoken is different for both cases how do I validate the user ???

    — commented 3 years ago by Sahil Grover

3 Answers

Accepted Answer

Hi Sahil,

You can store that AccessToken separately in Properties and check if you use webview then pass that accessToken and when user use Ti.Facebook then use another AccessToken.Hope that help you. Best luck

— answered 3 years ago by Nitin Chavda
answer permalink
1 Comment
  • @Nitin as per my view the AccessToken is unique relation between the app_id and user_id.

    So whether u hit facebook form the web or from mobile it should always return you with the same AccessToken ?? Please verfiy !!!

    — commented 3 years ago by Sahil Grover

I dont really understand what the problem is here?

— answered 3 years ago by Ashish Nigam
answer permalink
1 Comment
  • @ashish I wanted to map acesstokens. But the acesstoken which i get from the server side authentication and titanium.facebook authentication doesn't match. Now I have made a new field in database for seperate tokens.

    — commented 3 years ago by Sahil Grover

Your Answer

Think you can help? Login to answer this question!