Plugins/Purple Service/AIFacebookXMPPAccount.h
author Thijs Alkemade <thijsalkemade@gmail.com>
Tue, 18 Sep 2012 23:06:14 +0200
branchGTalkOAuth2Support
changeset 5089 a761745f82a1
parent 3992 8af85a76ef99
permissions -rw-r--r--
Started working on OAuth2 support for GTalk.

Abstracted the OAuth2 support of Facebook into a separate AIPurpleOAuthJabberAccount.

Logging in on GTalk gets to the auth token.

Refs #16161
3938
035ebbd633af First pass at Facebook XMPP. Definitely **NOT** ready for actual use, but it does connect.
Colin Barrett <colin@springsandstruts.com>
parents:
diff changeset
     1
//
035ebbd633af First pass at Facebook XMPP. Definitely **NOT** ready for actual use, but it does connect.
Colin Barrett <colin@springsandstruts.com>
parents:
diff changeset
     2
//  AIFacebookXMPPAccount.h
035ebbd633af First pass at Facebook XMPP. Definitely **NOT** ready for actual use, but it does connect.
Colin Barrett <colin@springsandstruts.com>
parents:
diff changeset
     3
//  Adium
035ebbd633af First pass at Facebook XMPP. Definitely **NOT** ready for actual use, but it does connect.
Colin Barrett <colin@springsandstruts.com>
parents:
diff changeset
     4
//
035ebbd633af First pass at Facebook XMPP. Definitely **NOT** ready for actual use, but it does connect.
Colin Barrett <colin@springsandstruts.com>
parents:
diff changeset
     5
//  Created by Colin Barrett on 11/18/10.
035ebbd633af First pass at Facebook XMPP. Definitely **NOT** ready for actual use, but it does connect.
Colin Barrett <colin@springsandstruts.com>
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
035ebbd633af First pass at Facebook XMPP. Definitely **NOT** ready for actual use, but it does connect.
Colin Barrett <colin@springsandstruts.com>
parents:
diff changeset
     7
//
035ebbd633af First pass at Facebook XMPP. Definitely **NOT** ready for actual use, but it does connect.
Colin Barrett <colin@springsandstruts.com>
parents:
diff changeset
     8
5089
a761745f82a1 Started working on OAuth2 support for GTalk.
Thijs Alkemade <thijsalkemade@gmail.com>
parents: 3992
diff changeset
     9
#import "AIPurpleOAuthJabberAccount.h"
a761745f82a1 Started working on OAuth2 support for GTalk.
Thijs Alkemade <thijsalkemade@gmail.com>
parents: 3992
diff changeset
    10
#import "AIXMPPOAuthWebViewWindowController.h"
3938
035ebbd633af First pass at Facebook XMPP. Definitely **NOT** ready for actual use, but it does connect.
Colin Barrett <colin@springsandstruts.com>
parents:
diff changeset
    11
3983
438f058cffd4 Properly prompt for auth when coming from the setup wizard, and autofill as indicated. Added commented-out code which uses the keychain to store the session secret, which we don't use since it doesn't actually work for authorization.
Evan Schoenberg
parents: 3980
diff changeset
    12
#define ADIUM_APP_ID "164063256994618"
438f058cffd4 Properly prompt for auth when coming from the setup wizard, and autofill as indicated. Added commented-out code which uses the keychain to store the session secret, which we don't use since it doesn't actually work for authorization.
Evan Schoenberg
parents: 3980
diff changeset
    13
#define ADIUM_API_KEY "add7b04ecedcd84645f3c32e7884682d"
438f058cffd4 Properly prompt for auth when coming from the setup wizard, and autofill as indicated. Added commented-out code which uses the keychain to store the session secret, which we don't use since it doesn't actually work for authorization.
Evan Schoenberg
parents: 3980
diff changeset
    14
438f058cffd4 Properly prompt for auth when coming from the setup wizard, and autofill as indicated. Added commented-out code which uses the keychain to store the session secret, which we don't use since it doesn't actually work for authorization.
Evan Schoenberg
parents: 3980
diff changeset
    15
/* deprecated? This is called the 'App Secret' on Facebook's developer page.  */
438f058cffd4 Properly prompt for auth when coming from the setup wizard, and autofill as indicated. Added commented-out code which uses the keychain to store the session secret, which we don't use since it doesn't actually work for authorization.
Evan Schoenberg
parents: 3980
diff changeset
    16
#define ADIUM_API_SECRET "bb9d2d9771790e69a0e943771ddf33c8"
3980
19ad494dc235 Update to our new app id, api key, and app secret. Also, prevent a crash by not returning nil within the webView willLoadResource method.
Evan Schoenberg
parents: 3978
diff changeset
    17
5089
a761745f82a1 Started working on OAuth2 support for GTalk.
Thijs Alkemade <thijsalkemade@gmail.com>
parents: 3992
diff changeset
    18
@interface AIFacebookXMPPAccount : AIPurpleOAuthJabberAccount {
3992
8af85a76ef99 Reworked the migration process for facebook-http to facebook-xmpp:
Evan Schoenberg
parents: 3984
diff changeset
    19
	NSDictionary *migrationData;
3938
035ebbd633af First pass at Facebook XMPP. Definitely **NOT** ready for actual use, but it does connect.
Colin Barrett <colin@springsandstruts.com>
parents:
diff changeset
    20
}
035ebbd633af First pass at Facebook XMPP. Definitely **NOT** ready for actual use, but it does connect.
Colin Barrett <colin@springsandstruts.com>
parents:
diff changeset
    21
3992
8af85a76ef99 Reworked the migration process for facebook-http to facebook-xmpp:
Evan Schoenberg
parents: 3984
diff changeset
    22
@property (nonatomic, retain) NSDictionary *migrationData;
5089
a761745f82a1 Started working on OAuth2 support for GTalk.
Thijs Alkemade <thijsalkemade@gmail.com>
parents: 3992
diff changeset
    23
@end