更新时间:2022-12-22 13:33:01
我想你需要听,当他们完成登录并重定向到你的应用程序一些像此。
只能使用窗口。位置
设置为 file:///android_asset/www/index.html
或您要将用户返回的任何页面。 p>
< fb:login-button onlogin =document.location.href ='file:///android_asset/www/index.html'; >
< / fb:login-button>
这样的东西,但是像这样的按钮?
I have inserted a facebook like button with this methods like a simple web: https://developers.facebook.com/docs/plugins/like-button
But the first time that a button is pressed a login window opens. This window opens in the current window, not in a new window. After the user logs in the window try to close itself but it can't. A white window is showed. Next times the like button works correctly because the user is logged in.
I also try to implement with the cordova plugin "phonegap-facebook-plugin" but it doesn't have support for like button. https://github.com/phonegap/phonegap-facebook-plugin
I think you need to listen to when they've finished logging in and redirect back to you're application some like this.
Only with window.location
set to something like file:///android_asset/www/index.html
or whatever page you want to return the user to.
<fb:login-button onlogin="document.location.href='file:///android_asset/www/index.html';">
</fb:login-button>
Something like this but for the like button ?