Skip to content

Twitter auth configuration missing #4583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
joaoarmando opened this issue Feb 21, 2018 · 3 comments
Closed

Twitter auth configuration missing #4583

joaoarmando opened this issue Feb 21, 2018 · 3 comments

Comments

@joaoarmando
Copy link

I'm getting the following exception: Twitter auth configuration missing.
Code 1.

i have this in my index.js:
oauth: {
twitter: {
consumer_key: 'MyConsumerKey',
consumer_secret: 'MySecrectKey'
}
}

I'm using this to link accounts:

if (!ParseTwitterUtils.isLinked(user)) {
          ParseTwitterUtils.link(user,
                  getActivity(), new SaveCallback() {
              @Override
              public void done(ParseException ex) {

                  if (ex == null){
                      if (ParseTwitterUtils.isLinked(ParseUser.getCurrentUser())) {
                          Log.d("MyApp", "Woohoo, user logged in with Twitter!");
                      }
                  }else {
                      Log.d("MyApp", "message: " + ex.getMessage());
                      Log.d("MyApp", "getCode: " + ex.getCode());
                  }

              }
          });
      }

where user is: ParseUser user = ParseUser.getCurrentUser();

I'm using android 5.1 lollipop
I'm using these libs:

 compile 'com.parse:parse-android:1.15.8'
 compile 'com.parse:parsetwitterutils-android:1.10.+'
 compile 'com.parse:parsefacebookutils-v4-android:1.10.4@aar'

I've been trying all day to find a solution to this, but so far nothing, so I've come to the experts for help, thank you.

Forgive my English, I'm using google translator :(

@joaoarmando
Copy link
Author

I was randomly reading the parse server documentation and found this, I decided to test and it works perfectly now!
auth: {
twitter: {
consumer_key: "MyConsumerKey", // REQUIRED
consumer_secret: "MyConsumerSecret" // REQUIRED
},
facebook: {
appIds: "MyAppIdFb"
}
}

@flovilmart
Copy link
Contributor

Glad you found the solution!

@GEverding

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants