Parse Now Supports Sign in with Twitter

From the developers who brought you “log in with Facebook for Parse” on Android and iOS comes their next big hit: “Sign in with Twitter for Parse!” Now appearing on iOS and Android devices near you.

Ok, so maybe we don’t need to roll out the red carpet, but we do have a new, highly-requested feature to announce! Using both the iOS and Android SDKs, you can now easily link and log in your users with their Twitter accounts.

On iOS, use the PFTwitterUtils class to allow your users to log in:

[PFTwitterUtils logInWithBlock:^(PFUser *user, NSError *error) {
    if (!user) {
        NSLog(@"Uh oh. The user cancelled the Twitter login.");
    } else if (user.isNew) {
        NSLog(@"User signed up and logged in with Twitter!");
    } else {
        NSLog(@"User logged in with Twitter!");

Or on Android, use the ParseTwitterUtils class:

ParseTwitterUtils.logIn(this, new LogInCallback() {
    public void done(ParseUser user, ParseException err) {
        if (user == null) {
            Log.d("MyApp", "Uh oh. The user cancelled the Twitter login.");
        } else if (user.isNew()) {
            Log.d("MyApp", "User signed up and logged in through Twitter!");
        } else {
            Log.d("MyApp", "User logged in through Twitter!");

Check out our iOS and Android guides for more information!

Also of note: for users of our Facebook APIs on iOS, we have refactored this support into a PFFacebookUtils class and deprecated the existing APIs on PFUser, bringing the iOS and Android SDKs more in-line and matching the model for Twitter sign-in on iOS.

David Poll
February 27, 2012

Viewing the Status of Push Notifications

Here at Parse we’re excited about making push notifications simple and powerful for developers. This month we’ve been busy rolling out improvements to our push notification service, including additional documentation and tutorials about how to do custom processing of push data on the client-side in both iOS and Android, and official support for push notifications in our REST API. Now, we’re introducing a console under your app’s “Push Notifications” tab which gives you full visibility into the status of your pushes:

This widget gives you information about your recent notifications, including the channel, device type, and push data that we received from you. This is especially useful if a push fails due to a missing channel or invalid data JSON.

We’re hoping that this data helps you create and manage your app as we build out our push functionality. Keep an eye out for more amazing features, and in the meantime, feel free to get in touch.

Brian Jacokes
February 24, 2012

Saving Data while Offline

Whether they’re on a long flight, riding through a subway tunnel, or camping in a national park, sometimes it’s just not possible for users to get a network connection. But that doesn’t mean they should be without their favorite mobile apps. So how can you save that latest page number when reading offline? Or remember the latest achievement unlocked in a game?

To address this problem, we have added the ability to save objects offline.

// Create the object.
PFObject *gameScore = [PFObject objectWithClassName:@"GameScore"];
[gameScore setObject:[NSNumber numberWithInt:1337] forKey:@"score"];
[gameScore setObject:@"Sean Plott" forKey:@"playerName"];
[gameScore setObject:[NSNumber numberWithBool:NO] forKey:@"cheatMode"];

// Save it as soon as is convenient.
[gameScore saveEventually];

If the user doesn’t have a network connection, the object will be stored safely on the device until a new connection has been established. If the app is closed before the connection is back, Parse will try to save it again the next time the app is opened.

Read more about offline saving in the iOS Guide and Android

As always, let us know what you think.

Bryan Klimt
February 17, 2012

Building HTML5 Mobile Apps with Parse and Tiggzi

The folks over at Tiggzi will be conducting an interactive webinar on how to build an HTML5 mobile app using their Mobile App Builder and Parse. During the session, you’ll learn how to create and define mobile services on Parse that are exposed via REST. You’ll also learn how to build an HTML5 app in Tiggzi and connect the app to our REST API using a visual data mapper. Attendees will be able to try the app on their devices as it’s being built.

When: Thursday, February 23, 2012 11:00 AM – 12:00 PM PST

James Yu
February 16, 2012

Facebook Users: Now On Android!

You asked, and we have now delivered. Not long ago, we added Facebook user support to our iOS SDK. Today, we’re happy to announce that this same functionality is available in the Android SDK as well!

If you upgrade to the latest Android Parse SDK, it now includes a copy of the Facebook SDK. ParseFacebookUtils has been added in order to provide native support for authenticating via Facebook, and will create or log in ParseUser objects automatically. See our updated Parse Facebook documentation to see how simple we’ve made it..

For example, this is the code to sign up or log in a Facebook user:

ParseFacebookUtils.logIn(currentActivity, new LogInCallback() {
    public void done(ParseUser user, ParseException err) {
        if (user == null) {
            Log.d("MyApp", "Uh oh. The user cancelled the Facebook login.");
        } else if (user.isNew()) {
            Log.d("MyApp", "User signed up and logged in through Facebook!");
        } else {
            Log.d("MyApp", "User logged in through Facebook!");

Just as with our iOS rendition of Facebook support, the following happens when this code is executed:

  • The user is shown the Facebook login dialog.
  • The user authenticates via Facebook, the data is passed back to the Parse libraries.
  • Our library then saves the data to a ParseUser. If it’s a new user based on the Facebook ID, then that user is created, if not, they are simply logged in.

Allowing your users to log into your Parse-powered app using their Facebook identities is now easier than ever!

Parse Facebook documentation

David Poll
February 7, 2012



RSS Feed Follow us Like us