Comments (14)
did you link to your bundle-identifier?
from swifter.
No, how can I do that.?
from swifter.
self.swifter.authorizeWithCallbackURL(NSURL(string: "com.YOUR_APP://success")!, success: {
actually very easy, but took me also a long time to find out ;)
from swifter.
Unfortunately, I did that too...but it didn't help...
from swifter.
the callback url need to be your app and i guess you already have add the openurl stuff in your appdelegate?
from swifter.
Right,so shouldn't I use that in appdelegate?
from swifter.
thats fine.and the callback is your Bundle Identifier?
its is like
LTD.DOMAIN.APPNAME
and i put
LTD.DOMAIN://success
as callback.
from swifter.
No, I used myapp://success
from swifter.
So,LTD.DOMAIN://success will help me in login with Twitter app.?
from swifter.
yes, works for me,
i just recognized you want "appOnly" authentication.
i can not confirm it works the same way, because you need the bearer token and this might be handled slightly different?!
check out this link: https://dev.twitter.com/oauth/application-only
from swifter.
@ZaidPathan yes it is possible only if the user has configured his Twitter account in the Settings. You can then fetch his credentials from there and authenticate the user. @alexdd55 I've used the method here https://github.com/MHaroonBaig/Swift-Beautify in my sample application. The file is located here https://github.com/MHaroonBaig/Swift-Beautify/blob/master/Picker/DoneViewController.swift
from swifter.
Thanks Haroon bro,
I appreciate your and Alex's valuable response.
so is it not possible to fetch user data from installed app.(not settings account).?
from swifter.
No. The only possibility is when the user has configured his official Twitter account in the settings. You can do a work around. Like, many people don't know about configuring their accounts in the Settings section. What you can do is that, you can apply the check and fetch the credentials through the ACAccountStore. Then incase of any error, redirect the user to the settings screen manually so that they could enter their credentials there. You can then authenticate them using the credentials that they would enter.
from swifter.
Alright,
So, I'm closing this issue.
Thanks.
from swifter.
Related Issues (20)
- ErrorResponse Handling HOT 1
- library swiftyJSON error after import swifter in viewcontroller HOT 1
- Fail to authorise HOT 2
- how to embed tweet in swift?
- Documentation/tutorials for Swifter?
- Data instead of JSON - anyone wanna work on this with me? HOT 6
- I want to use `Swifter.authorizeSSO(succees: _, failure: _)` but the authentication page does not appear on the app. just appear Home HOT 6
- 'Swifter' used both as module name and class name is problematic. This breaks debugging HOT 1
- Compilation error on Xcode 13 Beta 4 HOT 1
- Authorize with actual twitter app or website, not with app-internal web view? HOT 1
- needs to update usage documentation for iOS13 & up HOT 1
- Any plans to support cocoapods?
- Any plans to include Twitter v2 API?
- iOS login with twitter has error: CredStore - performQuery - Error copying matching creds HOT 1
- difference between default initializers?
- createSavedSearch method - Could not authenticate you
- [Question] how to use authorizeSSO? HOT 2
- ⚠️ Deprecation notice ⚠️ HOT 9
- Iswifter.ipa
- 'Swifter-Swift.h' file not found & (fatal) could not build module 'Test'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swifter.