Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 15    Views: 178

Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
12/10/12 06:13 AM (13 years ago)

Integrate Facebook & Twitter In Socialize!

Hi I have spent weeks trying to integrate Facebook and Twitter into the Socialize plugin, but struggling. Setting up the Facebook and Twitter ID's is the easy bit, adding into Xcode is where I am struggling. Any help would be appreciated, very frustrating. Would be nice if a developer would make a chat module plugin for BT apps, would help many.
 
Kaybee
buzztouch Evangelist
Profile
Posts: 659
Reg: Sep 22, 2012
Perth, Australi...
44,690
like
12/10/12 06:52 AM (13 years ago)
Something like this? when you tap the FB.Twitter button on the bottom right? Use one of these vouchers to redeem and use on an iPhone. 67YEN6RHJMEH E9E33NAJL9MF 9EAY93F3M69N
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
12/10/12 08:17 AM (13 years ago)
confused! Don't follow! What are these codes for?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
12/10/12 09:04 AM (13 years ago)
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
12/10/12 09:25 AM (13 years ago)
Thanks, will look at now.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
12/10/12 09:27 AM (13 years ago)
No problem and I believe there is a plugin for IPhone to tweet in buzztouch plugin section here. LA
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
12/10/12 09:29 AM (13 years ago)
I think there may be some miscommunication here as I wanted to know how you add the Facebook integration into the Socialize plugin: http://getsocialize.com/
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
12/10/12 09:34 AM (13 years ago)
Yeah sorry... LA
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
12/10/12 07:05 PM (13 years ago)
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
12/10/12 07:10 PM (13 years ago)
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
12/11/12 04:45 AM (13 years ago)
Hi Mutzy sorry, I just don't get the integration part of FB in Xcode. I have read the documentation, it seems straight forward but I am obviously doing something wrong and I just cannot work it out.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
12/11/12 05:54 AM (13 years ago)
Okay, there's really only two steps to integrate FB assuming you already made a FB app and have an ID. There are two sections of code for your appdelegate file according to the guide. This is what my appdelegate.m file looks like in the didfinishlaunchingwithoptions section: -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ // set the socialize api key and secret [Socialize storeConsumerKey:@"MYCONSUMERKEY"]; [Socialize storeConsumerSecret:@"MYCONSUMERSECRET"]; [SZFacebookUtils setAppId:@"MYFBAPPID"]; [SZTwitterUtils setConsumerKey:@"MYTWITTEKEY" consumerSecret:@"MYTWITTERSECRET"]; //set the configuration file name configurationFileName = @"BT_config.txt"; Is this what yours looks like? If so, then you have to also add the following code somewhere in the same file: - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { return [Socialize handleOpenURL:url]; } I added the above after the entire -(void)loadAppData paragraph but don't think it matters. Have you done this? If so can you at least share to FB yet?
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
12/11/12 07:30 AM (13 years ago)
Don't recall adding this bit of code, checking now.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
12/11/12 07:34 AM (13 years ago)
Hi Mutzy do I add: - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { return [Socialize handleOpenURL:url]; } Straight after: -(void)loadAppData{ [BT_debugger showIt:self:[NSString stringWithFormat:@"refreshAppData%@", @""]]; Not sure.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
12/11/12 07:05 PM (13 years ago)
Sorry for the delay, got your response just as I got to the ER and it was BUSY ALL DAY! To answer your question, no. You want the -(void)loadAppData argument to finish before pasting the other argument. In my project the next argument after the -(void)load AppData section is the following: //load data //builds interface using the apps configuration data //turn off deprecated warnings (setStatusBarHidden changed after iOS 3.0)... #pragma GCC diagnostic ignored "-Wdeprecated-declarations" -(void)configureEnvironmentUsingAppData:(NSString *)appData{ [BT_debugger showIt:self:[NSString stringWithFormat:@"configureEnvironmentUsingAppData%@", @""]]; So paste the code right above the //load data
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
12/14/12 02:24 PM (13 years ago)
Any luck???
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.