Page 1 of 2
No Access Token getting saved, Salesforce API
Posted: Fri Aug 30, 2013 8:57 pm
by supriya hirurkar
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.
No Access Token getting saved, Salesforce API
Posted: Fri Aug 30, 2013 9:35 pm
by maxkatz
Can you post a screen shot of the page that you get?
No Access Token getting saved, Salesforce API
Posted: Fri Aug 30, 2013 9:51 pm
by supriya hirurkar
No Access Token getting saved, Salesforce API
Posted: Fri Aug 30, 2013 10:04 pm
by maxkatz
Can you run it again and also open the browser console?
No Access Token getting saved, Salesforce API
Posted: Fri Aug 30, 2013 10:07 pm
by supriya hirurkar
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
No Access Token getting saved, Salesforce API
Posted: Fri Aug 30, 2013 10:14 pm
by supriya hirurkar
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.
No Access Token getting saved, Salesforce API
Posted: Fri Aug 30, 2013 10:15 pm
by maxkatz
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.
No Access Token getting saved, Salesforce API
Posted: Fri Aug 30, 2013 10:25 pm
by supriya hirurkar
Is there any work -around for this situation? As far I remember, I thoroughly followed your tutorial in order to get this done.
No Access Token getting saved, Salesforce API
Posted: Fri Aug 30, 2013 10:29 pm
by maxkatz
It will be fixed this weekend: http://blog.appery.io/2013/08/mainten...
Did you get it working if all scripts load?
No Access Token getting saved, Salesforce API
Posted: Fri Aug 30, 2013 10:48 pm
by supriya hirurkar
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?