Comments (3)
Shlby,
First of all, thanks for the email! I'm working on a new version of FHSTwitterEngine that doesn't use OAuthConsumer, a version that uses plain old NSMutableURLRequest. There are a number of issues with OAuthConsumer, and they became painfully obvious with the updates to statuses/update_with_media. I also found a way to make requests dramatically smaller, ergo faster.
The demo app is royally broken, and really, it doesn't matter. I'll eventually work on a new demo, but it's of relatively low priority. The actual use of FHSTwitterEngine is up to you. Its use is clearly explained (and demonstrated) in the README.
Also, I don't quite understand the language of your last paragraph, care to say it again in more clear and technical language? (Because you don't call delegates on blocks)
Thanks for your interest in FHSTwitterEngine,
- Nate
On Aug 27, 2013, at 5:08 AM, Shlby Puerto [email protected] wrote:
Hello Nath,
I found some issues after the update specially with Login, Logout
Before, when logging out I use [engine clearAccessToken]
and
NSArray *cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies];[cookies enumerateObjectsUsingBlock:^(NSHTTPCookie *cookie, NSUInteger idx, BOOL *stop)
{
[[NSHTTPCookieStorage sharedHTTPCookieStorage] deleteCookie:cookie];
}];
and it works fine.. I can still login back but now I can't. On you're logout button you only changed the label and resigned the keyboard.
Is there a way we can login and logout properly? Like the one you had before.Another is, when I call delegates on the block in showOAuthLogin, with handler, even if used the block method to retain "self" it is still released.
Shlby
—
Reply to this email directly or view it on GitHub.
from fhstwitterengine.
Nate,
"Another is, when I call delegates on the block in showOAuthLogin, with handler, even if used the block method to retain "self" it is still released."
Umm, it's hard to explain but here goes, there's something on the block in showOAuthLogin that only success shown. Any other variable that we want to log becomes nil. And we cannot call any functions from there.
Example :
__weak someClass *dp = self;
__block someClass *dp2 = self;
NSString *string = asd;
[self.engine showOAuthLoginControllerFromViewController:vc withCompletion:^(BOOL success) {
if (success) {
[self someFunction];
[db someFunction];
[dp2 someFunction];
NSLog(@"%@",string);
} else {
}
}];
-(void)someFunction{}
// someFunction won't be called
// None of the functions will be called even if we have applied the block
// same goes with variables. string becomes nil.
P.S. Before everything worked fine.
- Shlby
from fhstwitterengine.
This will be fixed in the next commit or when I merge a feature branch. I am aware of this, and I have implemented a solution.
from fhstwitterengine.
Related Issues (20)
- [cocoapods] update platform HOT 1
- [readme] add link
- Cleanup mention of OAuthConsumer
- FHSTwitterEngineController is hanging when the user doesnt have twitter installed on the device HOT 8
- Cancel Block HOT 1
- How can I erase the current session? HOT 1
- Getting Error as Error Domain=NSURLErrorDomain Code=-1012 in post Tweet HOT 4
- Way to block the links, as forgot password. HOT 7
- addUsersToListWithID Not work HOT 5
- I can not use addUsersToListWithID HOT 2
- Create method lists/members/destroy HOT 3
- Remove user in list! HOT 2
- postTweet: returning the wrong error for {code: 187, message: "Status is a duplicate."} HOT 3
- Direct Message HOT 1
- FHSTwitterEngine trouble in ios 10.1.1 HOT 3
- share Video on Twitter HOT 1
- Help with Authentication and Access Token HOT 1
- SFSafariViewController HOT 1
- Error code 204 - "The request did not return any content."
- New apps that use UIWebView are no longer accepted HOT 1
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 fhstwitterengine.