@lmarcogimenez
Did you try to pass symbols such as "?" or "=" from JS to Obj-C via JSON?
If the object contains one of those two symbols, the passing fails.
Thanks,
Eras3r
inveni0 wrote:I've got FBConnect working now, and a pretty good idea of how to get it implemented well. My only issue is that I lose the session after quitting the app, even if I select "Keep Me Logged In". Is there a way to prevent it from logging out so that my users don't have to worry about logging in each time they start the app? I know it's possible because I have apps that do it. I just can't seem to find any documentation out there on that specific item.
EDIT: I see that you're supposed to use [session resume] to resume a session. Any ideas on how to implement this?
inveni0 wrote:inveni0 wrote:I've got FBConnect working now, and a pretty good idea of how to get it implemented well. My only issue is that I lose the session after quitting the app, even if I select "Keep Me Logged In". Is there a way to prevent it from logging out so that my users don't have to worry about logging in each time they start the app? I know it's possible because I have apps that do it. I just can't seem to find any documentation out there on that specific item.
EDIT: I see that you're supposed to use [session resume] to resume a session. Any ideas on how to implement this?
Has anyone had any luck in figuring this out? My current issue is that I'm trying to post a story to the user's wall, but because I can't tell if they're logged in, when I call the method to post the story, it won't load if they're not logged in. Is there a way for me to tell?
- (void)initSession
{
_session = [[FBSession sessionForApplication:kApiKey secret:kApiSecret delegate:self] retain];
NSInteger* connStatus = [_session resume];
[self._webView performSelectorOnMainThread:@selector(stringByEvaluatingJavaScriptFromString:) withObject:[NSString stringWithFormat:@"connectionStatus('%d')", connStatus] waitUntilDone:NO];
self._friendsList = nil;
}
var connStatus;
function connectionStatus(status)
{
connStatus = status;
if (connStatus == 1)
{
loginStatusChanged(1);
}
}
jacklink01 wrote:Hey. im sorta confused as to how the Facebook Connect works.
I've got an app where I would like people to be able to login, then a pre-made message can be posted on their wall to promote the app.
If someone could point me in the right direction as to how I need to change this sample to work in that way, that would be great!
Thanks
Users browsing this forum: No registered users and 1 guest