Skip to content
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

Not redirected back to the app #6

Open
hanalaydrus opened this issue Aug 15, 2017 · 4 comments
Open

Not redirected back to the app #6

hanalaydrus opened this issue Aug 15, 2017 · 4 comments

Comments

@hanalaydrus
Copy link

I already sign in and redirected to callback url but can't get redirected back to the app. Any solution?

My code looks like this

    const tokens = {
      consumerKey: TWITTER_CONSUMER_KEY,
      consumerSecret: TWITTER_CONSUMER_SECRET
    }
    const redirectUrl = 'http://localhost/twitter'
    auth(tokens, redirectUrl)
      .then(resp => console.log(resp))
      .catch(err => console.log(err))
@Piroro-hs
Copy link
Owner

redirectUrl should not have web protocols (http, https). It should be link inside the app.
See React Native docs for more info.

@pakicoder123
Copy link

Hi,
I apologize in advance for the length of this issue.

I have a quick question on this as well. I set up deep linking in the android manifest and put the callback as "sharebert://explorescreen". The code properly opens up the chrome browser for twitter authorization, but when it tries to redirect it gives an error in the browser saying that the link isn't found.

I looked this up online and saw people saying on stackoverflow that their deep links weren't working when they had the fbsdk installed in the app, but those issues were only for iOS, and I'm writing my code for Android. I also have react-native-fbsdk installed.

Do you think I am doing something wrong setting up the deep link or is it because of fbsdk? I tried doing this in a test app as well and it worked, so I'm not sure what's wrong. Thank you for taking the time to read this, I appreciate your help

@Piroro-hs
Copy link
Owner

That is strange. Could you share your AndroidManifest.xml?

@vijayst
Copy link

vijayst commented Aug 25, 2017

My deep link is working. But it is triggered with two query string: oauth_token and oauth_verifier. What should I do with these two? How do I get the screen name of the user?

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

4 participants