This question is locked. New answers and comments are not allowed.
Hi,
I'm trying the sample on http://docs.telerik.com/platform/appbuilder/sample-apps/sample-facebook-api
My questions:
1. Logged in:
- How do we detect a user is already logged in? So that we can hide the login button and show the logout button.
2. Logout:
Tried the codes to revoke permission & wipe the token (below). But it does not clear the logged in user fully. When I click Login again, I no need to key in username & password and can just click OK to continue. How can I logout so that I need to key in the username and password again?
Thanks.
I'm trying the sample on http://docs.telerik.com/platform/appbuilder/sample-apps/sample-facebook-api
My questions:
1. Logged in:
- How do we detect a user is already logged in? So that we can hide the login button and show the logout button.
2. Logout:
Tried the codes to revoke permission & wipe the token (below). But it does not clear the logged in user fully. When I click Login again, I no need to key in username & password and can just click OK to continue. How can I logout so that I need to key in the username and password again?
01.$.oajax({02. type: "DELETE",03. url: "https://graph.facebook.com/me/permissions",04. jso_provider: "facebook",05. jso_allowia: true,06. dataType: 'json',07. success: function(data) {08. outputlog("Delete response (facebook):");09. outputlog(data);10. },11. error: function(e) {12. outputlog(e);13. }14. });15. 16. outputlog("wipe tokens");17. jso_wipe();Thanks.