简体   繁体   English

Facebook在Android/phonegap上登录

[英]Facebook login on Android/phonegap

I'm trying to login to facebook via phonegap on android phone, but it's not working.我正在尝试通过 android 手机上的 phonegap 登录 facebook,但它不起作用。 Instead, it shows this warning Unsafe JavaScript attempt to access frame with URL file:///android_asset/www/facebook.html from frame with URL http://www.facebook.com/plugins/login.php?action=like&api_key=APIKEY&channel=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D0%23cb%3Df3ee611618%26origin%3Dfile%253A%252F%252F%252Ff3596433dc%26relation%3Dparent.parent%26transport%3Dpostmessage&locale=en_US&max_rows=1&sdk=joey&show_faces=true&width=200. Domains, protocols and ports must match Instead, it shows this warning Unsafe JavaScript attempt to access frame with URL file:///android_asset/www/facebook.html from frame with URL http://www.facebook.com/plugins/login.php?action=like&api_key=APIKEY&channel=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D0%23cb%3Df3ee611618%26origin%3Dfile%253A%252F%252F%252Ff3596433dc%26relation%3Dparent.parent%26transport%3Dpostmessage&locale=en_US&max_rows=1&sdk=joey&show_faces=true&width=200. Domains, protocols and ports must match Unsafe JavaScript attempt to access frame with URL file:///android_asset/www/facebook.html from frame with URL http://www.facebook.com/plugins/login.php?action=like&api_key=APIKEY&channel=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D0%23cb%3Df3ee611618%26origin%3Dfile%253A%252F%252F%252Ff3596433dc%26relation%3Dparent.parent%26transport%3Dpostmessage&locale=en_US&max_rows=1&sdk=joey&show_faces=true&width=200. Domains, protocols and ports must match

How to develop this?如何开发这个?

Thanks谢谢

Currently, the only working method to use Facebook Connect in Phonegap+Android is with this Phonegap plugin: https://github.com/jos3000/phonegap-plugins/tree/master/Android/Facebook目前,在Phonegap+Android中使用Facebook Connect的唯一工作方法是使用这个Phonegap插件: https://github.com/jos3000/phonegap-plugins/tree/master/Android/Facebook

In Phonegap+iOS you can use the ChildBrowser method.在 Phonegap+iOS 中,您可以使用ChildBrowser方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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