• mega novi
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

Hi all,

 

Am integrating twitter through salseforce but response failed and am getting below error

 

"failed to validate oauth signature and token"

 

 

Am passing accesstoken,secretkey and ect like this

 

Can any one help or suggest ?

 

string Stringval='OAuth 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);




 

 

Thanks in Advance.

we are strugglisng for almost 2 days to accomplish the below request.

 

we have a video to post on our portal , so end user can see it on click.

we have been provided with a html code, which plays perfect, we are not sure how to embed this in visualforce or for that matter any where in salesforce, from where we can get an url and can be posted as a link.

 

Please help...

 

can i play some thing like below from salesforce

<html>
<body>

<video width="320" height="240" controls="controls" autoplay="autoplay">
  <source src="movie.ogg" type="video/ogg">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.webm" type="video/webm">
<object data="movie.mp4" width="320" height="240">
  <embed width="320" height="240" src="movie.swf">
</object>
</video>

</body>
</html>

 

  • October 22, 2012
  • Like
  • 0