-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
twitter crashed #42
Comments
Hm. I'm away from a keyboard this weekend, but can take a look when I get back. It's using the native twitter API. Do you have the crash logs? If you use the latest version (master), you should see the URL it constructs (logging statement) |
omg, I dont know what's happen but after run react-native log-ios, this issue went away. I can see the screen login twitter but can not catch response.data.
note: android works fine. |
I'm having this issue with iOS also. |
I found a solution for scopes that's changed coma to plus {scopes: 'email+profile'} |
@naviocean Thanks, that doesn't seem to work for me, it does appear to be an issue with the scoping/credentials are showing null. |
@naviocean @auser I'm getting a crash as well trying to connect to twitter. Crash logs: |
Get the latest update. I pushed an update that fixes this problem. |
@auser thanks for being on top of this. I downloaded the new version you published to npm, unfortunately I'm still getting the same crash |
Oh you are on iOS... lemme finish debugging this Android problem |
@auser yep indeed. thanks again |
Alright, can you try with the latest push on master? |
Thanks for your help on this issue @auser but It's crashing logs are showing this error now:
I pulled in the latest version from npm 2.1.13 |
Can you share your code, by chance? I am having trouble trying to recreate the error here... |
Hi @auser , |
And I call it by:
@auser : As soon as it calls manager.authorize() whole app crashes. |
@madebysquares do you have any You can get them using this command (substituting your app id, of course):
|
@auser looks like @madebysquares is also having the issue on iOS - same error I was seeing as well. below is my code if it helps:
when I call the connectTwitter action the app crashes |
Is this on iOS? |
yes |
Okay, so I was able to duplicate this issue and fix it.
|
Feel free to reopen this issue if it still exists after all the steps on the README are setup in your app. |
@auser yes I followed every step as described above, went back and double checked. still happening unfortunately. i dont have the ability to re-open the issue since i didn't create this one |
@madebysquares let us know if you have any luck |
Did you rebuild your application after updating your app? Set a breakpoint in your |
Happy to jump on ScreenHero to debug with you. |
handleOpenUrl doesn't ever get triggered. the app is crashing on this line: https://github.com/fullstackreact/react-native-oauth/blob/master/ios/OAuthManager/OAuth1Client.m#L34 screenhero would be awesome i sent you an invite - not sure how to add ppl outside my slack org. I'm ari@swish.io |
for what its worth facebook login is working fine so i think the library is properly installed? |
I stepped away for a few minutes. Will be back in about one hour. |
Yes, I followed all the steps, I'm only working with iOS currently. Facebook works perfectly fine, (as @arilitan mentioned for him). I will pull the latest 2.1.14 and try again in a bit. |
Hello guys... I'm having the same error as @madebysquares. @auser thank you for this lib, that is really awesome! |
Still getting this error:
|
Thanks to @arilitan, we merged a patch that will give better error responses. Can you try pulling the latest version ( |
Hello @auser, I've updated to 2.1.15, on IOS the warning promise is disappeared but nothing is returned.
Note: fb and google work fine on IOS |
|
@madebysquares @naviocean we figured out you need to add a callback URL in your app settings. It doesn't matter what it is just has to be a valid URL. That should resolve it - see the highlighted field below: |
@arilitan you are right! I tested here and everything is working well. hahahaha I don't believe that! |
Beside that, when I set {scopes: 'email'} or {scopes: 'profile'} it returns ok but {scopes: 'email,profile'} return a error invalid_scope. Ditto here, developing on Windows for Android and |
@PranayShah try to set {scopes:'email+profile'} |
@naviocean Tried it, no luck. The error is |
I'm having the same error like @PranayShah but, on google. |
Regarding the scopes, they should be comma ( Does it work @adrianotadao with just a single scope? |
It does work with a single scope, but with multiple scopes doesn't work
with the comma, space or plus separators for Google login on android.
…On 21 Jan 2017 04:10, "Ari" ***@***.***> wrote:
Regarding the scopes, they should be comma (,) separated.
Does it work @adrianotadao <https://github.com/adrianotadao> with just a
single scope?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB64WyLkXS8myHdPvOy6gmfFIaCVZ9k2ks5rUTf4gaJpZM4Lj4UG>
.
|
@auser yes, with a single scope it works very well. |
For the benefit of anyone looking at this thread as of June 2018, they may find this page in the twitter docs is enlightening. You will need to add a valid callback URL in twitter settings. Should be check the log for
and make sure the callbackURL sent there matches your settings, but just the protocol (eg sent 'callback_url' will be 'exampleapp://oauth-response/twitter' so twitter settings callback url needs to be 'exampleapp://' ) The docs should probably be updated to reflect what appears to be a very recent change. |
@tomjohnhall thank you for mentioning |
Hi guys,
I got a trouble that when I used method login with twitter: manager.authorize('twitter'), my app is crashed only on iOS. However, it works fine with both of facebook and google.
Beside that, when I set {scopes: 'email'} or {scopes: 'profile'} it returns ok but {scopes: 'email,profile'} return a error invalid_scope. How to get multiple scopes?
Please help me to solve this issue.
Thanks
The text was updated successfully, but these errors were encountered: