You need to sign in to do that
Don't have an account?

How to integrate salesforce with twitter Api
Hello,
Integrating salesforce with twitter through apex code am facing error like
"Failed to validate oauth signature and token"
Am passing twitter Oauth token, secretkey... in string format like
string Stringval='Oauth_callback="'+EncodingUtil.urlEncode('https://c.ap1.visual.force.com/apex/twitterForcepage';, 'UTF-8')+'",oauth_consumer_key="eIGzjmMGeclmpSzxmjnKhQ", oauth_nonce="3de317379683f90d4f80da8879472036", oauth_signature="fiyY68Llzy2yREjUeJw0o%2Fdqcns%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1365504459", oauth_token="354671694-MrReLR18pmpDZulKaRVZR3CifKpI9ZFo1XUofyJn", oauth_version="1.0"';
string bVal=EncodingUtil.Base64Encode(blob.valueof(Stringval));
String authorizationHeader = 'Bearer :' + bval;
req.setHeader('Authorization',bVal);
How to integrate salesforce with twitter through apex? how to authenticate with twitter? or acess responce from twitter?
Can anyone suggest my issue where it is problem?
Thank you
Hi Varun ,
Have u found the solution to the problem.I also have same requirement I need to integrate twiter with salesforce.If u have some code can u please put it here which will be of great help.
I installed app exchange free app for twitter integration.
--
*Best Regards*,
Suresh Kumar Reddy.A
Junior Salesforce Developer,
Advanz Knowledge Systems pvt.Ltd,
Begumpet,Hyderabad.
+91-9492173851
Can u store your contacts tweets in salesforce?Is it possible with the free twitter App?
Have you tried changing:
String authorizationHeader = 'Bearer :' + bval;
req.setHeader('Authorization',bVal);
to
String authorizationHeader = 'Bearer ' + bval;
req.setHeader('Authorization',authorizationHeader );
----------------------------------------------------------------------------
You could also try:
string bVal=EncodingUtil.urlEncode(Stringval, 'UTF-8');
--
*Best Regards*,
Suresh Kumar Reddy.A
Junior Salesforce Developer,
Advanz Knowledge Systems pvt.Ltd,
Begumpet,Hyderabad.
+91-9492173851
I installed "Salesforce for Twitter and Facebook" app from app
exchange it synchronizing contacts and tweets from salesforce to twitter
vice versa. Please check it
Thank you
--
*Best Regards*,
Suresh Kumar Reddy.A
Junior Salesforce Developer,
Advanz Knowledge Systems pvt.Ltd,
Begumpet,Hyderabad.
+91-9492173851