Edited by JesseMonroy650:
I have already made several hybrid applications, although none of them were commercially available. I am using PhoneGap Build. Located here: https://build.phonegap.com/ I do not use a desktop application.
Source text:
I am trying to get data from Facebook inside the PhoneGap assembly.
I have a simple script that seems to work based on the API :
<script> document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { var fbLoginSuccess = function(userData) { alert("UserInfo: " + JSON.stringify(userData)); facebookConnectPlugin.getAccessToken(function(token) { alert("Token: " + token); }, function(err) { alert("Could not get access token: " + err); }); } facebookConnectPlugin.login(["public_profile"], fbLoginSuccess, function(error) { alert("" + error) } ); } </script>
And I believe that I configured my config.xml correctly:
<gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.9.0"> <param name="APP_ID" value="<ACTUAL APP ID HERE>" /> <param name="APP_NAME" value="<ACTUAL APP NAME HERE>" /> </gap:plugin>
But I don't get any warnings about this (or in the console log when I try to do this).
So my question is: am I using the PhoneGap Build Facebook API correctly? What should I do differently?
This is a less important issue - bonus points, if someone can indicate how I can get the same process that works in the browser without installing Cordoba locally - if possible even
source share