All Projects → hansemannn → ti.accountkit

hansemannn / ti.accountkit

Licence: other
DEPRECATED -- 🔐 Use the Facebook AccountKit iOS-SDK with Titanium Mobile.

Programming Languages

objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ti.accountkit

titanium-calendar
An easy to use iOS modal calendar for selecting dates. Based on the awesome PDTSimpleCalendar library.
Stars: ✭ 15 (-16.67%)
Mutual labels:  native, titanium
titanium-material
Use the native Material UI/UX framework (https://github.com/CosmicMind/Material) in Titanium!
Stars: ✭ 14 (-22.22%)
Mutual labels:  native, titanium
titanium-firebase-analytics
Use the Firebase Analytics SDK in Axway Titanium 🚀
Stars: ✭ 33 (+83.33%)
Mutual labels:  native, titanium
titanium-web-dialog
Use the SFSafariViewController (iOS) and Chrome Pages (Android) in Titanium.
Stars: ✭ 28 (+55.56%)
Mutual labels:  native, titanium
ti.paint
Touch-based painting with the Titanium SDK.
Stars: ✭ 27 (+50%)
Mutual labels:  native, titanium
Titanium mobile
🚀 Native iOS- and Android- Apps with JavaScript
Stars: ✭ 2,553 (+14083.33%)
Mutual labels:  native, titanium
ti.map
Use native Apple Maps & Google Maps in iOS and Android with Axway Titanium
Stars: ✭ 49 (+172.22%)
Mutual labels:  native, titanium
abifestival-app
Cross-platform festival-app built with the Appcelerator Titanium framework
Stars: ✭ 16 (-11.11%)
Mutual labels:  native, titanium
ti.coremotion
Support for the native iOS CoreMotion framework in Appcelerator Titanium
Stars: ✭ 15 (-16.67%)
Mutual labels:  native, titanium
titanium-vue
Use Vue.js to easily create native mobile apps with Axway Appcelerator Titanium.
Stars: ✭ 45 (+150%)
Mutual labels:  native, titanium
titanium-turbo
Axway Amplify module that adds some enhancements for Appcelerator Titanium Alloy
Stars: ✭ 15 (-16.67%)
Mutual labels:  native, titanium
Facebook-account-kit-android
Android app uses FACEBOOK's ACCOUNT KIT to login without password with EMAIL or PHONE.
Stars: ✭ 30 (+66.67%)
Mutual labels:  facebook-sdk, account-kit
griffin-app-opensource
The Axway Griffin App goes open source!
Stars: ✭ 19 (+5.56%)
Mutual labels:  native, titanium
ti.admob
Use the Google AdMob SDK on iOS and Android with Titanium
Stars: ✭ 51 (+183.33%)
Mutual labels:  native, titanium
av.imageview
Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
Stars: ✭ 97 (+438.89%)
Mutual labels:  native, titanium
ti.playservices
Titanium module for Google Play Services
Stars: ✭ 19 (+5.56%)
Mutual labels:  native, titanium
titanium-arkit
Use the iOS 11 ARKit API in Axway Titanium
Stars: ✭ 28 (+55.56%)
Mutual labels:  native, titanium
xDL
🔥 xDL is an enhanced implementation of the Android DL series functions.
Stars: ✭ 117 (+550%)
Mutual labels:  native
TiktokClone
TIKTOK Clone React Native Tutorial 2021 👨‍💻 I'll show you how you can do this in the simplest way and terms possible. By the end of this series you'll have learned how the big companies do it and will be able to do the same, you not only will be able to do this app, but you'll be able to put what you learn into your very own projects! In this se…
Stars: ✭ 69 (+283.33%)
Mutual labels:  native
phpmon
Lightweight, native Mac menu bar app that interacts with Laravel Valet. Helps you manage multiple PHP installations, locate config files and more.
Stars: ✭ 1,896 (+10433.33%)
Mutual labels:  native

Ti.AccountKit

⚠️ The AccountKit framework has been deprecated by Facebook in September 9, 2019 and will stop workring on March 9, 2020.

You can read more here.

Support for the Facebook AccountKit framework in Titanium Mobile to login using an email or phone number.

Note: This is the iOS version of Ti.AccountKit. You might want to check appwert/ti.accountkit for the Android equivalent 🚀.

Usage

Configure your tiapp.xml properly:

<ios>
    <plist>
        <dict>
            <key>CFBundleURLTypes</key>
            <array>
                <dict>
                    <key>CFBundleURLSchemes</key>
                    <array>
                        <string>ak{your-fb-app-id}</string>
                    </array>
                </dict>
            </array>
            <key>FacebookAppID</key>
            <string>{your-fb-app-id}</string>
            <key>AccountKitClientToken</key>
            <string>{your-accountkit-client-token}</string>
        </dict>
    </plist>
</ios>

Check this example code on using both phone- and email-login:

var win = Ti.UI.createWindow({
    backgroundColor:'white'
});

var accountkit = require('ti.accountkit');
// One of RESPONSE_TYPE_AUTHORIZATION_CODE or RESPONSE_TYPE_ACCESS_TOKEN
accountkit.initialize(accountkit.RESPONSE_TYPE_AUTHORIZATION_CODE);

accountkit.addEventListener("login", function(e) {
    Ti.API.warn("success: " + e.success);
    Ti.API.warn(e);
});

var btn1 = Ti.UI.createButton({
    top: 40,
    title: "Login with Phone"
});

btn1.addEventListener("click", function() {
    accountkit.loginWithPhone();

    // Optional: You can also pass a phone number and country-code to pre-fill the form
    // accountkit.loginWithPhone('<phone-number>', 'DE');
});

var btn2 = Ti.UI.createButton({
    top: 80,
    title: 'Login with E-Mail'
});

btn2.addEventListener('click', function() {
    accountkit.loginWithEmail();

    // Optional: You can also pass an email-address to pre-fill the form
    // accountkit.loginWithEmail('[email protected]');

    // Use accountkit.logout() to logout and pass an optional callback to
    // handle the asynchronous logout.
});

win.add(btn1,btn2);
win.open();
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].