0
我正在做一个webapp使用phonegap IOS和Android。Facebook的应用程序内登录webapp
在我的网上我有一个使用Facebook的登录表单,我想要的是,而不是在浏览器中打开Facebook登录,通过使用应用程序Facebook登录用户。
,我发现这个在GitHub上,这似乎是通过电话差距
https://github.com/Wizcorp/phonegap-facebook-plugin
官方插件当我尝试的Macbook终端安装它,我有这样的问题:
MBP-di-Andrea:Bparty Andre$ cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin --variable APP_ID=00000000 --variable APP_NAME=BParty
Fetching plugin "https://github.com/phonegap/phonegap-facebook-plugin" via git clone
Error: Command failed: /bin/sh -c git clone "https://github.com/phonegap/phonegap-facebook-plugin" "/var/folders/t3/bzvxk7td567_y58nl1nsclbw0000gp/T/git/1428503102506"
xcrun: error: active developer path ("/Volumes/Xcode 1/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)
at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)
我有一些问题: - 我该如何解决这个问题? -安装手机之后,我如何使用Facebook应用内登录而不是浏览器? - 有没有更好的方法来做到这一点?
好吧,插件安装,现在我应该如何使用它来登录我的用户? @Asaf – BParty
这个API非常简单。要登录只需调用:facebookConnectPlugin.login(数组字符串的权限,功能成功,功能失败)。 – Asaf