iphone - IOS to support Facebook and Twitter sharing with logout option -


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

  1. find if facebook wrapper saving accesstoken anywhere, if remove while logging out.
  2. 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