Le Cercle des Pouets Disparus Index du Forum
S’enregistrer
FAQMembresRechercherGroupesProfilSe connecter pour vérifier ses messages privésConnexion
Apache Cordova Facebook Login

 
Poster un nouveau sujet   Répondre au sujet    Le Cercle des Pouets Disparus Index du Forum -> Panneau d'Affichage -> 30 Millions d'Analphapouets
Sujet précédent :: Sujet suivant  
Auteur Message
onoherm
Non Membre

Hors ligne

Inscrit le: 06 Avr 2016
Messages: 131

MessagePosté le: Mer 10 Jan - 23:37 (2018)    Sujet du message: Apache Cordova Facebook Login Répondre en citant




Apache Cordova Facebook Login
> DOWNLOAD (Mirror #1)










The Graph API facebookConnectPlugin.api(String requestPath, Array permissions, Function success, Function failure) Allows access to the Facebook Graph API. logPurchase(Number value, String currency, Function success, Function failure). result.success - 1 if the user accepted the login request, 0 otherwise. Callbacks:. Failure function returns an error String. Success function returns a success string if all passed permissions are granted. Logout. If this is not possible then the sign on will degrade gracefully using the standard dialog based authentication. The namespace of a Facebook app is found on the Settings page. 0 is a network failure, 304 is a login mismatch (call logout before trying again). { method: "share", href: " caption: "Such caption, very feed.", description: "Much description", picture: ' hashtag: '#myHashtag', sharefeedWeb: true, // iOS only } . Success function returns an Object like:. Example options: { url: " picture: " } Sample Code facebookConnectPlugin.appInvite( { url: " picture: " }, function(obj){ if(obj) { if(obj.completionGesture == "cancel") { // user canceled, bad guy } else { // user really invited someone Smile } } else { // user just pressed done, bad guy } }, function(obj){ // error console.log(obj); } ); Login In your onDeviceReady event add the following var fbLoginSuccess = function (userData) { console.log("UserInfo: ", userData); } facebookConnectPlugin.login(["publicprofile"], fbLoginSuccess, function loginError (error) { console.error(error) } ); Get Access Token If you need the Facebook access token (for example, for validating the login on server side), do: var fbLoginSuccess = function (userData) { console.log("UserInfo: ", userData); facebookConnectPlugin.getAccessToken(function(token) { console.log("Token: " + token); }); } facebookConnectPlugin.login(["publicprofile"], fbLoginSuccess, function (error) { console.error(error) } ); Get Status and Post-to-wall For a more instructive example change the above fbLoginSuccess to; var fbLoginSuccess = function (userData) { console.log("UserInfo: ", userData); facebookConnectPlugin.getLoginStatus(function onLoginStatus (status) { console.log("current status: ", status); facebookConnectPlugin.showDialog({ method: "share" }, function onShareSuccess (result) { console.log("Posted. facebookConnectPlugin.logout(Function success, Function failure). 750 commits 4 branches 20 releases 82 contributors Objective-C 84.0% Java 9.9% JavaScript 6.1% . ["publicprofile", "userbirthday"] . result.errorLocalized (if error is 1) - Facebook's localized description of what went wrong, in the current locale. The URL is expected to be an App Link. activateApp(Function success, Function failure). { url: " picture: " } . Get Status. facebookConnectPlugin.api(" /?fields=id,email",["userbirthday"],functiononSuccess(result){console.log("Result:",result);/*logs:{"id":"000000123456789","email":"myemailexample.com"}*/},functiononError(error){console.error("Failed:",error);});. Note that changes to the APPID value in your config.xml file will not be propagated to the individual platform builds. This API allows for additional permission because, unlike login, the Graph API can accept multiple permissions. Example permissions:. CordovaFacebook. CordovaFacebook.logout. Unless noted, this is a drop-in replacement. docs Proper linking Feb 6, 2017 scripts simplified browser setup Aug 25, 2016 src Updated the ConnectPlugin so that it accepts multiple async requests (# Aug 25, 2017 tests Syncs versions in plugin.xml Jul 6, 2015 www Fix for facebook-browser.js (#561) Sep 19, 2017 .gitignore Updating Android and iOS SDK. (Meaning onFailure will never be called). Get Status and Post-to-wall. The currency specification is expected to be an ISO 4217 currency code Manually log activation events activateApp(Function success, Function failure) App Invites facebookConnectPlugin.appInvite(Object options, Function success, Function failure) Please check out the App Invites Overview before using this. For example, if 10 people each purchased one item that cost $10 (and passed in valueToSum) then they would be summed to report a number of $100 5a02188284
android facebook for nokia 5233facebook forza horizoninstagram login on facebookfacebook apps uktemporarily blocked from liking on facebookcomment pirater un compte facebook cmdfacebook plus loginvray download facebookcover photo for facebook makerfacebook i like button


Revenir en haut
Publicité






MessagePosté le: Mer 10 Jan - 23:37 (2018)    Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:   
Poster un nouveau sujet   Répondre au sujet    Le Cercle des Pouets Disparus Index du Forum -> Panneau d'Affichage -> 30 Millions d'Analphapouets Toutes les heures sont au format GMT + 1 Heure
Page 1 sur 1

Sauter vers:  


Index | Panneau d’administration | créer un forum gratuit | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Powered by phpBB © 2001 phpBB Group
Traduction par : phpBB-fr.com
Ile-fantasy phpBB2 theme by Vincemuss.