How to send Twitter OAuth access tokens with ajax request?

You need to make this request into a JSONP request, so you can do cross-domain AJAX.

You need to make this request into a JSONP request, so you can do cross-domain AJAX. $. GetJSON("api.twitter.com/1/statuses/home_timeline..., function(json) { console.

Log(json); }); The? Callback=? Converts this into a JSONP request.

The link you provided is for a PHP library. If you want to make API calls in JavaScript, you need to use a JavaScript OAuth library.

Thanks, converting it to JSONP fixed the same origin error. I was under the impression (stackoverflow. Com/questions/1769713/…) the relying on only javascript is a bad idea.So would it be better to call a php file through the ajax request?

Still unclear about where the access token is stored and how to pass it to a request whether it's php or js. – Moudy Apr 27 at 14:35 I suggest you use the PHP library you have, and make calls to that. You can make AJAX calls to a PHP script that can make the calls for you.

– Rocket Apr 27 at 14:43.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions