在Android / PhoneGap的Facebook登录 [英] Facebook login on Android/phonegap
问题描述
我试图通过登录Android手机上的PhoneGap给Facebook,但它不工作。
相反,它显示了这个警告不安全的JavaScript的尝试与URL文件来访问框架:///android_asset/www/facebook.html从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.域,协议和端口必须匹配
I'm trying to login to facebook via phonegap on android phone, but it's not working.
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
如何发展呢?
感谢
推荐答案
目前,使用Facebook Connect在PhoneGap的Android版+唯一的工作方式与此插件的PhoneGap:
https://github.com/jos3000/phonegap-plugins/tree/master / Android的/ Facebook的
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的iOS版+可以使用的 ChildBrowser 的方法。
In Phonegap+iOS you can use the ChildBrowser method.
这篇关于在Android / PhoneGap的Facebook登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!