简体   繁体   中英

Facebook Like Button that Login with Facebook SDK for Android

I embedded the like button as a WebView in my Android app.

I have logged-in to my Android app using the facebook-android-sdk via SSO ; but when I clicked the like button, it still prompted the login page (of course it did).

I want to know if there's any way to let the WebView know that I've already logged-in (for example provide the access_token somewhere in the webpage)?

Thanks.

See my answer to this question . In brief, you can't; but if you get the user to authenticate in the WebView once, you might be able to get the facebook auth cookie out of it and re-insert it into subsequent WebView instances.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM