ccoenraets / OpenFB

Micro-library that lets you integrate browser and Cordova apps with Facebook with no plugin or SDK dependency.
MIT License
505 stars 231 forks source link

Lost token after login #118

Open IvanProdaiko94 opened 7 years ago

IvanProdaiko94 commented 7 years ago

Please help me! I'd like to share post on facebook from my app. I'm logging in, but after I did it, I have to login it again to publish my fb post. Library encapsulate token in itself and I don't know where it loosing it(((

oubaiyd commented 7 years ago

openFB.init({appId: 'YOUR_ID_APP', tokenStore: window.localStorage}); This line to store the Facebook token in localStorage instead of sessionStorage. I hope this helps you.