forked from dakerfp/QMLFB
-
Notifications
You must be signed in to change notification settings - Fork 0
Tiny example how to authenticate people via FB in QML
License
naughtyfox/QMLFB
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
/* * * * QMLFB version 0.1b by Jesse Ikonen * QMLFB version 0.2 by Daker Fernandes * =======================================* * * Simple QML Component that authenticates your users using Facebook Graph. * * */ Usage: * Use like any file component. Facebook application id property is required: Facebook { id: facebook displayStyle: "touch" // or "wap" applicationId: "<YOUR FB APP ID HERE>" scope: ["user_aboute_me", "friends_about_me"] // Application permissions onUserAuthenticated: { myGraph(function() { main.name = this["name"]; }); } } * Some properties you can hook into: facebook.isAuthenticated => returns if user is authenticated or not (bool) facebook.userId => returns user facebook id facebook.token => returns user facebook token facebook.me => returns your facebook graph data (variant) so you can do things like, text: facebook.me.name * Some functions you can use: facebook.myPicture() => returns your picture url * Access functions to graph are not done yet, but you can use getJSON helper from helpers.js if you really need something else. Thank you.
About
Tiny example how to authenticate people via FB in QML
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published