Supernatural Universe
RPG sur l'univers de Supernatural... Avec les chasseurs du côté du bien, ceux qui sont entre les deux comme Ruby et Bela, et les démons du côté des méchants...
 
 FAQ   Rechercher   Membres   Groupes   S’enregistrer 
 Profil   Se connecter pour vérifier ses messages privés   Connexion 



 Bienvenue dans le Supernatural Universe 
Chasseurs ou Démons ? Quel sera votre camp ? La guerre vient juste de commencer...

  


MusicPlaylistRingtones
Music Playlist at MixPod.com

Facebook Login With Cordova

 
Poster un nouveau sujet   Répondre au sujet    Supernatural Universe Index du Forum -> Les Persos -> Persos Disponibles
Sujet précédent :: Sujet suivant  
Auteur Message
panoodele
Adjudant-Chef

Hors ligne

Inscrit le: 30 Mar 2016
Messages: 126
Localisation: Montpellier
Masculin
Point(s): 322
100: 2,56

MessagePosté le: Mar 9 Jan 2018 - 22:10    Sujet du message: Facebook Login With Cordova Répondre en citant




Facebook Login With Cordova
> DOWNLOAD (Mirror #1)










you can get data about user:JavaScript function onLoginSuccess() { // console.log('LOGIN SUCCESS'); var apiRoute = "me/?fields=id,name,birthday,education,email,work,location,hometown,picture.width(720).height(720)"; facebookConnectPlugin.api(apiRoute, ["userbirthday"], onDataReceiveSuccess, onDataReceiveFail); } function onLoginFail(error) { // console.log('Login failed:', error); }12345678910function onLoginSuccess() {// console.log('LOGIN SUCCESS');var apiRoute = "me/?fields=id,name,birthday,education,email,work,location,hometown,picture.width(720).height(720)";facebookConnectPlugin.api(apiRoute, ["userbirthday"], onDataReceiveSuccess, onDataReceiveFail);}function onLoginFail(error) {// console.log('Login failed:', error);}api() function allows you to create a request to facebook server.For logout you need to call logout() function. 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. Installation. You can share that by adding a specific dialog mode parameter. CordovaFacebook. All CordovaFacebook methods accept exactly one argument: options, of type Object. (is optional) . Dismiss Join GitHub today GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together. " + JSON.stringify(result)); }, function (e) { alert("Failed: " + e); }); } ); }; Getting a User's Birthday Using the graph api this is a very simple task: facebookConnectPlugin.api(" /?fields=id,email", ["userbirthday"], function (result) { alert("Result: " + JSON.stringify(result)); /* alerts: { "id": "000000123456789", "email": "myemailexample.com" } */ }, function (error) { alert("Failed: " + error); }); Publish a Photo Send a photo to a user's feed facebookConnectPlugin.showDialog( { method: "feed", picture:' name:'Test Post', message:'First photo post', caption: 'Testing using phonegap plugin', description: 'Posting photo using phonegap facebook plugin' }, function (response) { alert(JSON.stringify(response)) }, function (response) { alert(JSON.stringify(response)) });. Cordova >= 5.0.0 iOS and Android Login, Graph Requests, App Events . facebookConnectPlugin.getLoginStatus(Function success, Function failure). result.error - 1 if there was an error, 0 otherwise. However, unlike in the browser, the Cordova application will use the native Facebook app to perform Single Sign On for the user. Using Phonegap-Facebook-Plugin you can implement login in a dozen of minutes.First you need to have facebook account and go to Then follow easy steps to create your application:1. Check if the user is currently logged in. Activation events are automatically tracked for you in the plugin. Note that changes to the APPID value in your config.xml file will not be propagated to the individual platform builds. Installing the FB plugin requires a lot of pre-configuration. Getting a User's Birthday. For options information see: Facebook share dialog documentation Facebook send dialog documentation Success function returns an Object with postId as String or from and to information when doing apprequest. The Graph API facebookConnectPlugin.api(String requestPath, Array permissions, Function success, Function failure) Allows access to the Facebook Graph API. Success function returns an Object like:. logout () .. CordovaFacebook.logout({onSuccess:function(){alert("Theuserisnowloggedout");}});//Unlessyouneedtowaitforthenativesdktodoitsthing,//youdontevenreallyneedtouseacallback:CordovaFacebook.logout();. kmturley 2015 . This plugin is not simple to install so make sure to check out the official docs. In success function you can do whatever you want i.e. To use the FB plugin, you first have to create a new Facebook App inside of the Facebook developer portal at . Latest commit 544cc06 Nov 30, 2015 Christoph Atteneder Remove unused translations . To allow web-access through your app in the development stage, you may have to go into the Facebook Developer portal and set the Site URL to your localhost server (eg: The page to configure these settings can be found at at App ID}/settings/. Manually log activation events. showDialog(options). Events are listed on the insights page. Example options:. Responsive magazine using Turn.js Creating a page turn effect is hard.very hard! There are lots of solutions that exist, but many of them miss the small details which ma. browserInit ( appID , version ); }); . Failure function returns an error String. Game request:. then ( function ( success ) { // { id: "634565435", // lastName: "bob" // . (Meaning onFailure will never be called) 5a02188284
facebook forcing users to download appfacebook like bot germaninstaller facebook pour javatexas holdem 39; poker cheat code on facebookfacebook app can 39;t comment on picturesretrieve facebook password off iphonehow to clear your facebook accounthack facebook messenger accountdownload aplikasi facebook chat jarfree download of facebook for nokia n97


Revenir en haut
Publicité






MessagePosté le: Mar 9 Jan 2018 - 22:10    Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:   
Poster un nouveau sujet   Répondre au sujet    Supernatural Universe Index du Forum -> Les Persos -> Persos Disponibles Toutes les heures sont au format GMT + 2 Heures
Page 1 sur 1

 
Sauter vers:  

Portail | Index | Creer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Powered by phpBB © 2001, 2018 phpBB Group
Traduction par : phpBB-fr.comDesign by SkaidonDesigns | Distributed by Olate