supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

No Access Token getting saved, Salesforce API

I was trying the out-of-the box Salesforce OAuth API and did the app set-up as described in the app. But everytime I run the app, my screen shows null for the access-token and uri. As a result, I am not able to access Accounts, Contacts and Chatter. Please help with this issue.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

No Access Token getting saved, Salesforce API

Can you post a screen shot of the page that you get?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

No Access Token getting saved, Salesforce API

Can you run it again and also open the browser console?

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

No Access Token getting saved, Salesforce API

Thanks for the quick reply. I did it and I get following console errors:
Uncaught ReferenceError: $ is not defined SF_UsingAPI.html:21
Uncaught TypeError: Cannot set property 'mobile' of undefined jquery.mobile-1.3.0.js:25
Uncaught ReferenceError: $ is not defined mobilebase.js:41
Uncaught ReferenceError: jQuery is not defined customEventHandler.js:395
Uncaught ReferenceError: jQuery is not defined contexts.js:138
Uncaught ReferenceError: jQuery is not defined appery.js:2971
Uncaught ReferenceError: Appery is not defined get_target_platform.js:5
Uncaught ReferenceError: Appery is not defined service.js:15
Uncaught ReferenceError: Appery is not defined

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

No Access Token getting saved, Salesforce API

The above set of errors I get when I select Mobile frame to test my app.
If I test the in the browser, I get no errors in the browser console.
Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

No Access Token getting saved, Salesforce API

Some JavaScript files didn't get loaded (it's an issue we are fixing this weekend). Try reloading a few times until you get no errors.

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

No Access Token getting saved, Salesforce API

Is there any work -around for this situation? As far I remember, I thoroughly followed your tutorial in order to get this done.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

No Access Token getting saved, Salesforce API

It will be fixed this weekend: http://blog.appery.io/2013/08/mainten...

Did you get it working if all scripts load?

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

No Access Token getting saved, Salesforce API

No, I am not able to get it working. I had other doubts:
a. The tutorial says that when I set my callback_uri, I should uncheck mobile frame and then put that uri in the Salesforce app, which I did. But, when I have to test my app in the mobile framework, I check that box and the uri changes whereas my callback uri is still the same. Could that be an issue?
b. I get the set of errors(that I posted above) only when I don't check Public and check Show in Mobile Frame (in Test). Whenever I check or uncheck both, I dont get those errors. Could you explain, why?

Return to “Issues”