application share in facebook , twitter. have tried sharekit , facebook connect , able share using it. 1 problem facing logout option, once logged in not able logout , login user account... spent around 1 week this...
what best option sharing logout..
application support ios 4.3 6.1
yes there way, need 2 things
- find if facebook wrapper saving
accesstoken
anywhere, if remove while logging out. remove cookies created
facebook
app using following code..nshttpcookiestorage *storage = [nshttpcookiestorage sharedhttpcookiestorage]; (nshttpcookie *cookie in [storage cookies]) { nsstring* domainname = [cookie domain]; nsrange domainrange = [domainname rangeofstring:@"facebook"]; if(domainrange.length > 0) { [storage deletecookie:cookie]; } }
put above code in logout
function, should work..
all best.
Comments
Post a Comment