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

Tweet failed to send #5

Open
ThanhQuang1410 opened this issue Jun 26, 2020 · 3 comments
Open

Tweet failed to send #5

ThanhQuang1410 opened this issue Jun 26, 2020 · 3 comments

Comments

@ThanhQuang1410
Copy link

I am getting this error. I have integrated all step require. Can you give me any instruction

image

@r0b0t3d
Copy link
Owner

r0b0t3d commented Jun 26, 2020

Which api do you use (sharePhoto or shareVideo)? Did you get any error in Xcode console log? Any more info would be help.

@ThanhQuang1410
Copy link
Author

Hi. I can not test on xcode so I have to build and push to test flight instead. I was using "shareVideo".

@r0b0t3d
Copy link
Owner

r0b0t3d commented Jun 26, 2020

Sharing video directly via Twitter SDK has some limitations.

- Duration should be between 0.5 seconds and 30 seconds
- File size should not exceed 5 mb
- Dimensions should be between 32x32 and 1280x1024
- Aspect ratio should be between 1:3 and 3:1
- Frame rate should be 40fps or less

Refer: https://github.com/twitter-archive/twitter-kit-ios/wiki/Compose-Tweets#video-requirements

I already implemented the way to compress video but not sure another requirements will be match.
For alternative, you could try react-native-share to open native Share dialog. User can select Twitter from there

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

2 participants