Twitter API – Reasons for “invalid or expired token”

Check the integrity of an access token at any time by calling the GET account/verify_credentials while using that access token. Its mentioned and by research I came to know that: Your access token will be invalid if a user explicitly rejects your application from their settings or if a Twitter admin suspends your application. If … Read more

Why this error ‘ – Read-only application cannot POST ‘

Login in your app: http://dev.twitter.com/apps In the Settings tab, change the Application type to Read, Write and Access direct messages In the Reset keys tab, press the Reset button, update the consumer key and secret in your application accordingly. It looks like that resetting the keys force the change to your application type to take … Read more

Packaging Blackberry OAuth app throwing error

Make sure your java bin path is set in environment variable. http://docs.oracle.com/javase/tutorial/essential/environment/paths.html and take a look at the last 3 posts in the following website: http://supportforums.blackberry.com/t5/Java-Development/I-O-Error-Cannot-run-program-quot-jar-quot-CreateProcess-error-2/td-p/522638 Also make sure The Java® software development kit (Java SDK/JDK) is installed on the computer, and a correct version of the Java SDK is used. http://supportforums.blackberry.com/t5/Java-Development/I-O-Error-CreateProcess/ta-p/445949 As mentioned in … Read more

Authenticate and request a user’s timeline with Twitter API 1.1 oAuth

Here is what I did to get this working in a simple example. I had to generate an oAuth consumer key and secret from Twitter at: https://dev.twitter.com/apps/new I deserialized the authentication object first to get the token and type back in order to authenticate the timeline call. The timeline call simply reads the json as … Read more

Can we get email ID from Twitter oauth API?

This is now possible by filling out a form to request elevated permissions: Go to https://support.twitter.com/forms/platform Select “I need access to special permissions” Enter Application Name and ID. These can be obtained via https://apps.twitter.com/ — the application ID is the numeric part in the browser’s address bar after you click your app. Permissions Request: “Email … Read more

Owin Twitter login – the remote certificate is invalid according to the validation procedure

Thanks to the power of open source we can see that the thumbprints for the twitter certificates have been coded in the Katana Project. Microsoft.Owin.Security.Twitter.TwitterAuthenticationOptions Recently some certificates must have changed and now the thumbprints no longer match. Please add a new thumb print for the “VeriSign Class 3 Public Primary Certification Authority – G5” … Read more

Is there a way to get a user’s email ID after verifying his/her Twitter identity using OAuth?

The user’s email address can not be retrieved via the API. This is a deliberate design decision by the API team. UPDATE 2015.08.18: It is possible to request an email address from users, but it requires your app to be whitelisted. See https://dev.twitter.com/rest/reference/get/account/verify_credentials for details of the API call and this form to request whitelisting … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)