Linkedin Session always return nil or invalid sessionimage into mail body in iphoneFaceBook Connect. Login on tapNever finished [GKAchievement loadAchievementsWithCompletionHandler:]Generate HTML file from NSAttributedStringNil __block variable setting a NSStringnsurlsession for multiple request in loopWS-ReliableMessaging interoperability between Microsoft WCF and iOSRetrieving user's email Google Login iOSJSON creation in objective c, invalid JSONweak self always nil in asynchronous closure Alamofire
Unexpected behavior of the procedure `Area` on the object 'Polygon'
Fear of getting stuck on one programming language / technology that is not used in my country
Can disgust be a key component of horror?
Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?
Mixing PEX brands
Biological Blimps: Propulsion
Does malloc reserve more space while allocating memory?
When were female captains banned from Starfleet?
Temporarily disable WLAN internet access for children, but allow it for adults
Why would a new[] expression ever invoke a destructor?
Why is this estimator biased?
Quoting Keynes in a lecture
How could a planet have erratic days?
Lowest total scrabble score
Store Credit Card Information in Password Manager?
Does the Linux kernel need a file system to run?
Extract more than nine arguments that occur periodically in a sentence to use in macros in order to typset
Calculate sum of polynomial roots
How do I delete all blank lines in a buffer?
Invalid date error by date command
What should you do if you miss a job interview (deliberately)?
Multiplicative persistence
System.QueryException unexpected token
Using substitution ciphers to generate new alphabets in a novel
Linkedin Session always return nil or invalid session
image into mail body in iphoneFaceBook Connect. Login on tapNever finished [GKAchievement loadAchievementsWithCompletionHandler:]Generate HTML file from NSAttributedStringNil __block variable setting a NSStringnsurlsession for multiple request in loopWS-ReliableMessaging interoperability between Microsoft WCF and iOSRetrieving user's email Google Login iOSJSON creation in objective c, invalid JSONweak self always nil in asynchronous closure Alamofire
I am trying to fetch LinkedIn session through SDK but it always returns nil. I got success authentication but the session object is always nil. How can I fix this?
[LISDKSessionManager createSessionWithAuth:[NSArray arrayWithObjects:LISDK_BASIC_PROFILE_PERMISSION, LISDK_EMAILADDRESS_PERMISSION, nil]
state:@"some state"
showGoToAppStoreDialog:YES
successBlock:^(NSString *returnState)
NSLog(@"%s","success called!");
LISDKSession *session = [[LISDKSessionManager sharedInstance] session];
NSLog(@"value=%@ isvalid=%@",[session value],[session isValid] ? @"YES" : @"NO");
NSMutableString *text = [[NSMutableString alloc] initWithString:[session.accessToken description]];
[text appendString:[NSString stringWithFormat:@",state="%@"",returnState]];
NSLog(@"Response label text %@",text);
//_responseLabel.text = text;
//self.lastError = nil;
// retain cycle here?
// [self updateControlsWithResponseLabel:NO];
errorBlock:^(NSError *error)
NSLog(@"%s %@","error called! ", [error description]);
// self.lastError = error;
// _responseLabel.text = [error description];
// [self updateControlsWithResponseLabel:YES];
];
ios objective-c linkedin-api
add a comment |
I am trying to fetch LinkedIn session through SDK but it always returns nil. I got success authentication but the session object is always nil. How can I fix this?
[LISDKSessionManager createSessionWithAuth:[NSArray arrayWithObjects:LISDK_BASIC_PROFILE_PERMISSION, LISDK_EMAILADDRESS_PERMISSION, nil]
state:@"some state"
showGoToAppStoreDialog:YES
successBlock:^(NSString *returnState)
NSLog(@"%s","success called!");
LISDKSession *session = [[LISDKSessionManager sharedInstance] session];
NSLog(@"value=%@ isvalid=%@",[session value],[session isValid] ? @"YES" : @"NO");
NSMutableString *text = [[NSMutableString alloc] initWithString:[session.accessToken description]];
[text appendString:[NSString stringWithFormat:@",state="%@"",returnState]];
NSLog(@"Response label text %@",text);
//_responseLabel.text = text;
//self.lastError = nil;
// retain cycle here?
// [self updateControlsWithResponseLabel:NO];
errorBlock:^(NSError *error)
NSLog(@"%s %@","error called! ", [error description]);
// self.lastError = error;
// _responseLabel.text = [error description];
// [self updateControlsWithResponseLabel:YES];
];
ios objective-c linkedin-api
add a comment |
I am trying to fetch LinkedIn session through SDK but it always returns nil. I got success authentication but the session object is always nil. How can I fix this?
[LISDKSessionManager createSessionWithAuth:[NSArray arrayWithObjects:LISDK_BASIC_PROFILE_PERMISSION, LISDK_EMAILADDRESS_PERMISSION, nil]
state:@"some state"
showGoToAppStoreDialog:YES
successBlock:^(NSString *returnState)
NSLog(@"%s","success called!");
LISDKSession *session = [[LISDKSessionManager sharedInstance] session];
NSLog(@"value=%@ isvalid=%@",[session value],[session isValid] ? @"YES" : @"NO");
NSMutableString *text = [[NSMutableString alloc] initWithString:[session.accessToken description]];
[text appendString:[NSString stringWithFormat:@",state="%@"",returnState]];
NSLog(@"Response label text %@",text);
//_responseLabel.text = text;
//self.lastError = nil;
// retain cycle here?
// [self updateControlsWithResponseLabel:NO];
errorBlock:^(NSError *error)
NSLog(@"%s %@","error called! ", [error description]);
// self.lastError = error;
// _responseLabel.text = [error description];
// [self updateControlsWithResponseLabel:YES];
];
ios objective-c linkedin-api
I am trying to fetch LinkedIn session through SDK but it always returns nil. I got success authentication but the session object is always nil. How can I fix this?
[LISDKSessionManager createSessionWithAuth:[NSArray arrayWithObjects:LISDK_BASIC_PROFILE_PERMISSION, LISDK_EMAILADDRESS_PERMISSION, nil]
state:@"some state"
showGoToAppStoreDialog:YES
successBlock:^(NSString *returnState)
NSLog(@"%s","success called!");
LISDKSession *session = [[LISDKSessionManager sharedInstance] session];
NSLog(@"value=%@ isvalid=%@",[session value],[session isValid] ? @"YES" : @"NO");
NSMutableString *text = [[NSMutableString alloc] initWithString:[session.accessToken description]];
[text appendString:[NSString stringWithFormat:@",state="%@"",returnState]];
NSLog(@"Response label text %@",text);
//_responseLabel.text = text;
//self.lastError = nil;
// retain cycle here?
// [self updateControlsWithResponseLabel:NO];
errorBlock:^(NSError *error)
NSLog(@"%s %@","error called! ", [error description]);
// self.lastError = error;
// _responseLabel.text = [error description];
// [self updateControlsWithResponseLabel:YES];
];
ios objective-c linkedin-api
ios objective-c linkedin-api
edited Mar 7 at 7:33
Raptor
35.6k32180298
35.6k32180298
asked Mar 7 at 6:15
ManishManish
62
62
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55037183%2flinkedin-session-always-return-nil-or-invalid-session%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55037183%2flinkedin-session-always-return-nil-or-invalid-session%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown