ParseTwitterUtils-Android
ParseTwitterUtils-Android copied to clipboard
Twitter OAuth failure - "Error parsing a meta element's content"
I posted this on the Parse Server project page and was recommended I move the issue to this project instead.
I'm attempting to add Twitter authentication to my Android application, but I'm running into the following issue when I call the ParseTwitterUtils.logIn method. Via Logcat, I can see the following output:
03-21 13:19:32.775 24141-24141/com.vearlo I/chromium: [INFO:CONSOLE(8)] "The value "device-width;" for key "width" is invalid, and has been ignored.", source: https://api.twitter.com/oauth/authenticate?oauth_token=hrWTEAAAAAAAuLuOAAABU5rVEyg (8)
03-21 13:19:32.775 24141-24141/com.vearlo I/chromium: [INFO:CONSOLE(8)] "The value "1.0;" for key "initial-scale" was truncated to its numeric prefix.", source: https://api.twitter.com/oauth/authenticate?oauth_token=hrWTEAAAAAAAuLuOAAABU5rVEyg (8)
03-21 13:19:32.775 24141-24141/com.vearlo I/chromium: [INFO:CONSOLE(8)] "The value "1.0;" for key "maximum-scale" was truncated to its numeric prefix.", source: https://api.twitter.com/oauth/authenticate?oauth_token=hrWTEAAAAAAAuLuOAAABU5rVEyg (8)
03-21 13:19:32.776 24141-24141/com.vearlo I/chromium: [INFO:CONSOLE(8)] "Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.", source: https://api.twitter.com/oauth/authenticate?oauth_token=hrWTEAAAAAAAuLuOAAABU5rVEyg (8)
This line: Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.",
seems to be the culprit.
Has anyone seen a similar issue? Facebook login works fine.
Anyone? If it helps, I'm hosting a Parse Server instance on Heroku and the app.json file has the followig info:
"oauth": {
"twitter": {
"consumer_key": "REDACTED",
"consumer_secret": "REDACTED"
},
"facebook": {
"appIds": "REDACTED"
}
}
The error can be ignored. I solved my twitter login problems by filling the consumer key and consumer secret when constructing the ParseServer object in the index.js. Follow the solution here .
I filled the keys in index.js but i am still getting the error on my android application.
I/chromium: [INFO:CONSOLE(8)] "Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.", source: https://api.twitter.com/oauth/authenticate?oauth_token=19d16gAAAAAAxnuNAAABV_D-Uqc (8)