function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RS_SforceRS_Sforce 

URGENT: I AM STUCKED.

I have post a thread:'

http://boards.developerforce.com/t5/General-Development/Twitter-Integration/td-p/415045

 

I need help on this urgent or should I consider that nobody had worked on Salesforce Twitter integration yet.

 

Regards

Navatar_DbSupNavatar_DbSup

Hi,

 

OAuth  (Open Authorization)  is an open protocol to allow secure API authorization in a simple and standardized way from desktop, web applications. The Force.com platform implements the  OAuth  2.0 standard, so users can authorize applications to access Force.com resources (via the Force.com REST and SOAP Web Service APIs) on their behalf without revealing their passwords or other credentials to those applications. Alternatively, applications can directly authenticate to access the same resources outside the context of an end user.

 

 

To begin with OAuth authentication, you will first have to create an App in your twitter account.

 

After Creating the App you will get the following values.

a. OAuth Service Name

b. Access Token URL

c. Authorization URL

d. Consumer Key     

e. Consumer Secret

f. Request Token URL

 

 

After this you can do the Oauth Authentication to get the Access token.

 

Now in order to Authenticate you can make use of the OAuth , AuthController  classes .

 

OAuth class = http://code.google.com/p/sfdc-oauth-playground/source/browse/trunk/OAuth/src/classes/OAuth.cls?r=10

 

AuthController  classes = http://code.google.com/p/sfdc-oauth-playground/source/browse/trunk/OAuth/src/classes/AuthController.cls?r=10

 

Once Complete Authentication is done, then you store those permanent credentials (i.e., Access token) because they are used (along with your Consumer key and Consumer secret) to sign (i.e., authenticate) HTTP requests to Twitter’s APIs.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

RS_SforceRS_Sforce

Thanks a lot for your kind help.

 

Actually I have tried this. 

Request Token URL https://api.twitter.com/oauth/request_token
Access Token URL https://api.twitter.com/oauth/access_token
Consumer Key someKsy
Consumer Secret soemSecret
Authorization URL https://api.twitter.com/oauth/authorize

 

I have setup all these values, now when I try to authorize it,  it throws error to me:
Problem: Failed getting a request token. HTTP Code = 401. Message: Unauthorized. Response Body: <?xml version="1.0" encoding="UTF-8"?> Desktop applications only support the oauth_callback value 'oob' /oauth/request_token

 

I have setup complete OAuth Playground package in org.

 

Regards