mgtwitterengine

How to get twitter profile pic using api 1.1 from iOS?

非 Y 不嫁゛ 提交于 2019-12-04 20:29:18
I am using MGTwitterEngine lib to authenticate Twitter account, but after successful login I want to get user profile pic but not able to get it and following method is stopped working: https://api.twitter.com/1.1/users/profile_image?screen_name=username&size=bigger I just tried above method but no success. Then I have did lot of research on it and I finally got following api to get user profile information which include profile pic: https://api.twitter.com/1.1/users/show.json?screen_name=username But this api requires authentication by passing Authorization in Request header which I was not

Twitter API “retweeted_status” field in “home_timeline” request

拥有回忆 提交于 2019-12-04 20:16:19
I'm using MGTwitterEngine + OAuth in my iPhone application. All works fine, but when I'm requesting home_timeline of friends_timeline with include_rt option I'm not getting retweeted_status field. dev.twitter.com/doc/get/statuses/home_timeline Responce should contain "retweeted_status" structure for retweets (as you can see in the sample). It describes source tweet that was retweeted. dev.twitter.com/console If you will use Twitter Console - you will get this structure successfully. But my app recieves this structure as empty. Like " < retweeted_status>\n< /retweeted_status>". All requests are

Change the delegate of MGTwitterEngine

隐身守侯 提交于 2019-12-03 16:09:05
I have setup and successfully logged in via xAuth using an extended class of MGTwitterEngine, my question is if I want to pass this to another view controller, how can I change the delegate class, as it is some sort of weak reference @interface MGTwitterEngine : NSObject <MGTwitterParserDelegate> { __weak NSObject <MGTwitterEngineDelegate> *_delegate; Am I best wrap this up into a singleton class and pass around that way, seems overkill to login in each time, or have I missed a painstakingly obvious way of sharing this object around At the moment I have added a setDelegate method to the

MGTwitterEngine - Fav a Tweet

删除回忆录丶 提交于 2019-12-02 06:28:48
问题 I am attempting to favorite a tweet using MGTwitterEngine I am using "Tweet" a sub-class I made which handles the user ids, names, etc. So I put that into a string which then gets converted to a number that can be used to handle the act of fav. a tweet My Code: http://pastie.org/1467311 回答1: This is a very old post and not sure if anyone is looking out for it, but I managed to do this exact thing today after some 'hit-and-miss'. Here is what you have to do: Declare your class implements the

TARGET_OS_IPHONE and ApplicationTests

送分小仙女□ 提交于 2019-11-30 17:23:21
Why doesn't this code work when compiling an ApplicationTests unit test bundle? #if TARGET_OS_IPHONE #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #else #import <Cocoa/Cocoa.h> #endif One of my dependencies has this check and compiles just fine in my main application bundles, but it tries to load <Cocoa/Cocoa.h> when compiling my ApplicationTests bundle. It's probably just my lack of understanding of Xcode, but I get nervous when my test bundles don't build. Any suggestions? James J I had a similar problem: TARGET_OS_IPHONE isn't defined when building a static library. My solution

iphone MGTwitterEngine - post a tweet with my app signature

烈酒焚心 提交于 2019-11-30 15:23:18
I'm using MGTwitterEngine in an iPhone app, and it works great. The one thing I want to change is the "posted from MGTwitterEngine" that appears on Twitter. Obviously I'd like it to say "from MyCoolApp", and link to the app's website. When you register an app with Twitter ( http://twitter.com/oauth_clients/create ), you get this info: * Consumer key ***a891tcxSvL6QpEeo12g * Consumer secret ***MqeRIXiWsecretAdAjCgFsBN7Lef12f3uyxJFrs * Request token URL http://twitter.com/oauth/request_token * Access token URL http://twitter.com/oauth/access_token * Authorize URL http://twitter.com/oauth

TARGET_OS_IPHONE and ApplicationTests

时间秒杀一切 提交于 2019-11-29 16:26:01
问题 Why doesn't this code work when compiling an ApplicationTests unit test bundle? #if TARGET_OS_IPHONE #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #else #import <Cocoa/Cocoa.h> #endif One of my dependencies has this check and compiles just fine in my main application bundles, but it tries to load <Cocoa/Cocoa.h> when compiling my ApplicationTests bundle. It's probably just my lack of understanding of Xcode, but I get nervous when my test bundles don't build. Any suggestions? 回答1:

How to do a RETWEET on an iPhone twitter app (MGTwitterEngine)

守給你的承諾、 提交于 2019-11-29 08:53:20
How to do a RETWEET on an iPhone twitter app (MGTwitterEngine) It seems that this function hasn't supported in mattgemmell / MGTwitterEngine yet. In the meantime, you can add that function to your current version of MGTwitterEngine by referencing this variant of MGTwitterEngine: freeatnet / MGTwitterEngine - (NSString *)sendRetweet:(unsigned long)updateID { if (updateID == 0){ return nil; } NSString *path = [NSString stringWithFormat:@"statuses/retweet/%u.%@", updateID, API_FORMAT]; return [self _sendRequestWithMethod:HTTP_POST_METHOD path:path queryParameters:nil body:nil requestType

logout from Twitter in iPhone using OAuth+MGTwitterEngine Library

倾然丶 夕夏残阳落幕 提交于 2019-11-29 05:13:33
I had made the twitter application using the OAuth and MGTwitterEngine Library. The login phase is working fine but I am facing problem in logout. I had referred all the post of logout for OAuth but it doesn't works. So can anyone suggest the perfect method for logout from the Twitter ...? OR What changes I have to make in the Library file for the logout..!! There is no sign out from Twitter OAuth/xAuth... you need to implement client side solution: persistently store the access token in the keychain or coredata (it never expires unless the user revoke your application from his/her account)

IPhone + Twitter + LinkedIn + Facebook Error : Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

别说谁变了你拦得住时间么 提交于 2019-11-28 14:14:17
I am using MGTwitterEngine oAuth and LinkedIn iOS SDK in my iOS application with facebook-ios-sdk TwitterEngine : https://github.com/bengottlieb/Twitter-OAuth-iPhone LinkedInIphone : https://github.com/ResultsDirect/LinkedIn-iPhone Both integrated well separately, But when I have used both in application then error coming FB + Twitter = working well FB + LinkedIn = Working Well FB + Twitter + LinkedIn = Not Working and giving error: Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 Please help me where I am wrong. Related post EDIT Error