1. If you remote app is a web site, you can specify a specific URL. eg: https://localhost/mycallback. If you were writing this in Java, that URL would map to a servlet which knows how to accept the callback from Salesforce.
2. If you are using a mobile app, the callback URL can be anything you want (as your mobile app isn't a web server with a referencable address). I typically use sfdc://success.
The big key is your app, and the remote access callback URL match exactly.
Check out the following article. This should give you what you need.
http://wiki.developerforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com
Thans for the help
But iam not able to get callback url,i.e i dont know how to define callback url ,where can i find the document for this.
Thanks for your help!
thanks
Bhanu
There are two approaches:
1. If you remote app is a web site, you can specify a specific URL. eg: https://localhost/mycallback. If you were writing this in Java, that URL would map to a servlet which knows how to accept the callback from Salesforce.
2. If you are using a mobile app, the callback URL can be anything you want (as your mobile app isn't a web server with a referencable address). I typically use sfdc://success.
The big key is your app, and the remote access callback URL match exactly.
Check out the following article for some additional code samples when using the REST API: http://wiki.developerforce.com/page/Getting_Started_with_the_Force.com_REST_API
I will try this and I will get back to you,I never worked on this before so i will check this approach,I really thankful to you.
thanks
Bhanu
no problem. It takes a little bit of time to get your head around it the first time, but the actual coding part is pretty straight forward.