Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixes Twitter oauth authentication error (oauth_verifier parameter missing) when not using the iOS 5 Twitter Framework. #692

Merged
merged 1 commit into from

5 participants

@SteveLeviathan

Fixes Twitter oauth authentication error (oauth_verifier parameter
missing) when not using the iOS 5 Twitter Framework.

@SteveLeviathan SteveLeviathan Fixes Twitter oauth authentication error (oauth_verifier parameter mi…
…ssing) when not using the iOS 5 Twitter Framework

Fixes Twitter oauth authentication error (oauth_verifier parameter
missing) when not using the iOS 5 Twitter Framework.
7aab776
@VilemKurz VilemKurz merged commit 6125acf into ShareKit:master
@VilemKurz
Owner

many thanks

@MyWhereAbouts

Hi,

To implement this fix from the original download do I need to download any other branches to make sure all libraries etc are included and all declarations down. It also looks like I need to import the native Twitter APi? Any help appreciated.

Many thanks, John.

I recommend to follow our wiki install page literally. This way you have all the files + you'll get a possibility to easily update ShareKit in the future.

Excellent many thanks, much appreciated.

I'm almost there and have hit a compile error with the JSON class as follows:

Undefined symbols for architecture i386:
"OBJC_CLASS$SHKXMLResponseParser", referenced from:
objc-class-ref in SHKTwitter.o
"_OBJC_CLASS
$SHKiOSSharer", referenced from:
_OBJC_CLASS
$SHKiOSTwitter in SHKiOSTwitter.o
"_OBJC_METACLASS
$SHKiOSSharer", referenced from:
_OBJC_METACLASS
$_SHKiOSTwitter in SHKiOSTwitter.o
"_SLServiceTypeTwitter", referenced from:
-[SHKiOSTwitter share] in SHKiOSTwitter.o
"_UTTypeCopyPreferredTagWithClass", referenced from:
-[SHKFile MIMETypeForPath:] in SHKFile.o
"_UTTypeCreatePreferredIdentifierForTag", referenced from:
-[SHKFile MIMETypeForPath:] in SHKFile.o
"_kUTTagClassFilenameExtension", referenced from:
-[SHKFile MIMETypeForPath:] in SHKFile.o
"_kUTTagClassMIMEType", referenced from:
-[SHKFile MIMETypeForPath:] in SHKFile.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Do you know why I am getting these please? I seem to have all Frameworks included and within the build information. Thanks John

What json class? There is no more JSONKit in ShareKit. Just follow ALL steps from wiki carefully and you are set.

since i tried last one week..... Awesome solution than q so much.............. <3

@jeremybannister1

How do I pull changes from git hub? Im new to this, clearly...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 5, 2013
  1. @SteveLeviathan

    Fixes Twitter oauth authentication error (oauth_verifier parameter mi…

    SteveLeviathan authored
    …ssing) when not using the iOS 5 Twitter Framework
    
    Fixes Twitter oauth authentication error (oauth_verifier parameter
    missing) when not using the iOS 5 Twitter Framework.
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 1 deletion.
  1. +10 −1 Classes/ShareKit/Sharers/Services/Twitter/SHKTwitter.m
View
11 Classes/ShareKit/Sharers/Services/Twitter/SHKTwitter.m
@@ -268,7 +268,16 @@ - (void)tokenAccessModifyRequest:(OAMutableURLRequest *)oRequest
value:@"client_auth"] autorelease];
[oRequest setParameters:[NSArray arrayWithObjects:username, password, mode, nil]];
- }
+ } else {
+ if (self.pendingAction == SHKPendingRefreshToken)
+ {
+ if (accessToken.sessionHandle != nil)
+ [oRequest setOAuthParameterName:@"oauth_session_handle" withValue:accessToken.sessionHandle];
+ }
+
+ else
+ [oRequest setOAuthParameterName:@"oauth_verifier" withValue:[authorizeResponseQueryVars objectForKey:@"oauth_verifier"]];
+ }
}
- (void)tokenAccessTicket:(OAServiceTicket *)ticket didFinishWithData:(NSData *)data
Something went wrong with that request. Please try again.