Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 85    Views: 480

Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
07/02/12 09:48 AM (13 years ago)

Socialize and Buzztouch

Users, I've added this post as a starting point for support when adding Socialize SDK to our buzztouch apps. I envision posts here about support for all versions of buzztouch apps. The more subscribers we have here directly affects the support we'll receive from Socialize employees. Lets see how this works. To start check out www.getsocialize.com Fellow BT developer, Sevens
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
07/02/12 10:17 AM (13 years ago)
I am looking to implement socialize for iOS
 
Known
Apple Fan
Profile
Posts: 83
Reg: Jan 07, 2012
Suttons Bay, Mi...
830
like
07/02/12 10:23 AM (13 years ago)
Following
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/02/12 10:30 AM (13 years ago)
Thanks you guys and gals for the support. I've spoken to a Socialize employee last Friday and looks like there is hope in getting them to join our forum to support us. Until then the MO is still go to their site and find their support forum and request help and wait for a response. Hopefully all that changes with this link up! I'm excited now.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
07/02/12 10:41 AM (13 years ago)
Following too
 
DROdio
Code is Art
Profile
Posts: 3
Reg: Jul 02, 2012
San Francisco
30
like
07/02/12 11:08 AM (13 years ago)
Hi everyone, this is Daniel Odio, CEO of Socialize. Thanks for the interest in our social SDK. We're totally open to integrating it into Buzztouch. The only catch is that our dev team is 100% focused on making the iOS & Android platforms as good as they possibly can be, which means we don't have bandwidth to develop for other platforms. However, we've architected our system to allow for others to build SDKs against our API, and we've also made our iOS & Android SDKs open-source for exactly this purpose. I wrote some details about this on the relevant support thread: http://support.getsocialize.com/socialize/topics/buzztouch_and_socialize_unite?utm_content=topic_link&utm_medium=email&utm_source=new_topic If you're a savvy developer and you want to create a Socialize SDK for Buzztouch users, we'll help promote it (like we're doing for Titanium -- check out www.GetSocialize.com/sdk and scroll down) and we'll support it through our support forum, which we monitor religiously: http://support.getsocialize.com Happy coding! DROdio CEO, Socialize, Inc.
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
07/02/12 12:06 PM (13 years ago)
Following also ;-)
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
07/02/12 12:22 PM (13 years ago)
Cool Daniel! I'd love to get socialize in my buzztouch apps. I tried a couple of times and couldn't get it going on iOS. That will hopefully be changing soon! Thanks for stopping by!
 
Moto110
Aspiring developer
Profile
Posts: 205
Reg: Jul 26, 2011
Orlando, FL
8,700
like
07/02/12 12:31 PM (13 years ago)
This definitely looks interesting. I would like to integrate it into iOS apps as well.
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/02/12 01:00 PM (13 years ago)
In addition to the flood of other questions, my specific problem is creating entities within my app. This issue is affecting ability to send smart alerts. As far as I can tell, I've done all I know and still get errors with the new SDK installed. Any help is welcomed with open arms. Repeating the advice would be best curbed by posting for all like me to see in the forum above. I'm still stuck on entities. Bobby 1 hour ago Socialize has the best online guide I have run into. I literally followed the instructions online and got stuff to work. I must admit I haven't tried out Smart Alerts yet, but will give it a shot. I was going to put a guide together, however I saw another member on BT mentioning that they will put out the guide. If they dont put anything out soon, I'll put a guide and release it on the BT forum. See ya there. comment good point! DROdio (CEO) 1 hour ago BTW guys if anyone makes a "How to use Socialize with BuzzTouch" type guide, page or site, we will market it and link to it. We'll do a blog post about it and link to the relevant guides/pages that are specific to BuzzTouch users. DROdio good point! comment DROdio (CEO) 1 hour ago Oh one other thing -- great to hear that it *is* possible currently to integrate Socialize into BuzzTouch-produced apps. Often with DIY build platforms (like Titanium) there are specific tweaks that have to be made, even though they may compile to iOS or Android. Sounds like overall that is not a problem with BuzzTouch-produced apps, although there may be some things like SmartAlerts that need a bit of extra love. Let us know what you guys figure out and as always, you can post queries to this support forum, which we monitor very actively. As long as it's for iOS or Android, we'll support it. If you get into any Buzztouch-specific configurations, then you'll need to create a community of able-bodied developers to support the tweaks, and in that case we'll market and publicize the result, like we do for Titanium. (For example, there's even a Titanium & Socialize specific Google group at https://groups.google.com/forum/? from...) comment good point! Bobby 16 minutes ago Excellent, thanks for all the info DROdio comment good point! Shefik Bowen less than aminute ago Great now we need to get the word out. I'll quote DROdio in the forum.
 
manutd
Aspiring developer
Profile
Posts: 33
Reg: Apr 21, 2011
California
2,280
like
07/02/12 02:05 PM (13 years ago)
I just tried it and it turned out to be very simple than i expected it to be. Follow the instructions at http://socialize.github.com/socialize-sdk-ios/getting_started.html#installing-the-sdk For BT customization....Do the following as part of Step 4 in the above guide 1. Add the following code to the appDelegate.m file in BT code. //import the socialize header #import <Socialize/Socialize.h> #pragma mark - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { // set the socialize api key and secret, register your app here: http://www.getsocialize.com/apps/ [Socialize storeConsumerKey:@"SOCIALIZE_CONSUMER_KEY"]; [Socialize storeConsumerSecret:@"SOCIALIZE_CONSUMER_SECRET"]; //your application specific code return YES; } 2. Enter the SOCIALIZE_CONSUMER_KEY and SECRET key above from the socialize account where you would have created your app. 3. Go to BT_viewController.h and add the following code which is enclosed in #ifndef SOCIALIZE. I have included the existing code below just to make it clear where we need to add the new code. #ifndef SOCIALIZE #import <Socialize/Socialize.h> #endif @interface BT_viewController : UIViewController <UIAlertViewDelegate, ADBannerViewDelegate>{ BT_item *screenData; UIView *progressView; /* iAd Views */ UIView *adView; id adBannerView; BOOL adBannerViewIsVisible; BOOL hasStatusBar; BOOL hasNavBar; BOOL hasToolBar; #ifndef SOCIALIZE SocializeActionBar *actionBar; #endif } @property (nonatomic) BOOL hasToolBar; #ifndef SOCIALIZE @property (nonatomic, retain) SocializeActionBar *actionBar; #endif 4. Go to BT_viewController.c file and do the following @synthesize hasStatusBar, hasNavBar, hasToolBar; #ifndef SOCIALIZE @synthesize actionBar; #endif //initWithScreenData -(id)initWithScreenData:(BT_item *)theScreenData{ if((self = [super init])){ [BT_debugger showIt:self:@"INIT"]; //set screen data [self setScreenData:theScreenData]; } #ifndef SOCIALIZE if (self.actionBar == nil) { self.actionBar = [SocializeActionBar actionBarWithKey:@"http://www.example.com/object/1234" name:@"Something" presentModalInController:self]; [self.view addSubview:self.actionBar.view]; } #endif return self; } Compile the code and thats it....You should see the socialize Action bar at the bottom of every view of your app..... Hope this helps....
 
manutd
Aspiring developer
Profile
Posts: 33
Reg: Apr 21, 2011
California
2,280
like
07/02/12 02:06 PM (13 years ago)
If you want to have socialize attach to any specific screen within buzztouch app, then you have to look for the screen nickname or something unique id for the screen, create the socialize entity with that unique id...and you should see like, shares, comments against that entity... Hope this helps..
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/02/12 02:21 PM (13 years ago)
Have you setup entities in any app @manutd? That's where most fall short. And we need that for smart alerts, "the bread n butter" of Socialize according to me. Lol
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/02/12 02:22 PM (13 years ago)
Have you setup entities in any app @manutd? That's where most fall short. And we need that for smart alerts, "the bread n butter" of Socialize according to me. Lol
 
manutd
Aspiring developer
Profile
Posts: 33
Reg: Apr 21, 2011
California
2,280
like
07/02/12 02:28 PM (13 years ago)
Yes...My app gets dynamic data from backend. Its about newly released movies..So for each new movie which is added and sent to the app using JSON, a socialize entity gets created with the screen's navigation title which in my case is the movie name. In my implementation i create entity only for specific screen nickname type which in my case is movies.
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/02/12 02:35 PM (13 years ago)
OK. I'm developing for Android on BT and Ive been having a hard time getting the entities sent in my app. The javadoc is never read so that my app can create the entity and send. I suspect there is a problem with C2DM in the newest SDK. @DROdio, any word of a problem in the Socialize 2.1 SDK?
 
coderx
Veteran developer
Profile
Posts: 433
Reg: Oct 29, 2011
Ontario, Canada
8,680
like
07/02/12 03:01 PM (13 years ago)
@manutd ever get smart alerts working? I got the entities working fine using the same method for RSS and gallery. I haven't messed with smart alerts, just curious if you gave it a shot?
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
07/02/12 03:06 PM (13 years ago)
@manutd - that is the same thing I tried from another thread, it was probably you who posted it. Where exactly in the delegate.m and viewcontroller.h do I put that code? Is it all together? Anyway you would do a screen print and maybe highlight where thar code is and share it with us?
 
manutd
Aspiring developer
Profile
Posts: 33
Reg: Apr 21, 2011
California
2,280
like
07/02/12 03:27 PM (13 years ago)
@coderx-Haven't tried smart alerts with socialize as i had Appoxee push notifications integrated already...will try smart alerts very soon..for other apps... @Daneil- I will share the screen print once i go home tonight..
 
coderx
Veteran developer
Profile
Posts: 433
Reg: Oct 29, 2011
Ontario, Canada
8,680
like
07/02/12 03:32 PM (13 years ago)
@manutd no problem. I might give it a shot will share results as well. Thanks for your response. @danell I was also going to mention that Socialize has a print screen instructions. It's really silmple have a look at their graphical instructions.
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/02/12 03:48 PM (13 years ago)
@manutd let me clarify. I have created entities. Smart alert needs entities to send inorder to work properly but it is not working for my app. Only spinning wheel. If @DROdio would be so kind as to maybe create a video for IOS and Android to get Smart Alerts working, we would all be elated. Your Fellow developer Sevens
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/02/12 03:51 PM (13 years ago)
Also, we must be aware that the Socialize staff had time away from the office to attend the I/O conference. I'm sure they're super busy since C2DM has been deprecated.
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
07/02/12 04:04 PM (13 years ago)
I saw their screenshots at getsocialize, those are excellent. I guess my question is that after you get to step 4 on theirs, do you start the steps manutd describes?
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/03/12 02:37 AM (13 years ago)
@manutd, Would it be possible to provide the group with a few screens shots to allow us to better understand where you have placed the code in lines 1-4 of your post. I think everyone would greatly appreciate this and get a better understanding where to insert. I think what i am really saying is we need landmarks. Thanks Rad Doc
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/03/12 06:16 PM (13 years ago)
http://socialize.github.com/socialize-sdk-android/sdk_user_guide.html?v=v2.1#entities This link was sent to me about entities. I'm working on my entities for Android. No luck yet. Sevens
 
manutd
Aspiring developer
Profile
Posts: 33
Reg: Apr 21, 2011
California
2,280
like
07/03/12 06:59 PM (13 years ago)
I am traveling this week. I will post the screenshots once i am back.. Happy july 4th...
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/04/12 07:01 PM (13 years ago)
Hi gang, I'm back from a few days in the wild and will look into this in earnest. I appreciate Daniel Odio's (CEO of Socialize) participation and look forward to connecting with him. Expect a more formal and detailed how to guide soon....
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
07/04/12 07:50 PM (13 years ago)
Whooohooooo! Can't wait to see more!
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/04/12 09:10 PM (13 years ago)
@David, Thank you again for your assistance. Seems like you come through when we need it most. I'm sure this will be super beneficial for both communities. Anxiously tuned in, Sevens
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
07/05/12 11:33 AM (13 years ago)
<retracted>
 
DROdio
Code is Art
Profile
Posts: 3
Reg: Jul 02, 2012
San Francisco
30
like
07/05/12 12:03 PM (13 years ago)
Hey everyone, Just want to let you know that I'm monitoring this thread; if you have specific Socialize implementation questions please post them to http://support.getsocialize.com . We monitor it religiously. You can find details on C2DM vs. GCM at http://support.getsocialize.com/socialize/searches?query=C2DM&x=0&y=0&style=topics DROdio
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
07/06/12 08:22 AM (13 years ago)
Socialize Action Bar successfully installed in my iOS app. However, struggling with getting the FaceBook implementation working. Have any other BT developers installed this part?
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/06/12 08:24 AM (13 years ago)
Have you added the FB key in the assets folder document?
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
07/06/12 08:39 AM (13 years ago)
@Sevens If you mean the BT_info.plist, yes I did.
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/06/12 08:41 AM (13 years ago)
No there is a file that needs to b added to your project I believe. Read info carefully.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
07/06/12 11:16 AM (13 years ago)
@Sevens I have read and re-read the documentation. What "file needs to be added" are you referring to?
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/06/12 12:41 PM (13 years ago)
It is strongly recommended that users be able to authenticate with Facebook when using Socialize so as to maximize the exposure, and promotion of your app. Let Socialize know your Facebook app id. You can register or find your Facebook app id here: https://developers.facebook.com/apps If your app is not already configured for facebook authentication, then you’ll need to perform two more steps: First, you must register your app to open with your facebook app id url by adding a URL Types array to your Application’s <MyApp>-Info.plist. The string is a lowercase fb followed by your app id. The example app is configured as below: And lastly, you must be sure to call [Socialize handleOpenURL:url] from your UIApplicationDelegate’s application:openURL:sourceApplication: method. Socialize will take care of handing off the openURL request to the underlying Facebook iOS SDK. This completes the authentication flow. If your app already authenticates with Facebook, you will need to let Socialize know about the existing session. You can do this with the linkToFacebookWithAccessToken:expirationDate: call. For more information on using FBConnect on your own, you can check the official Facebook tutorial at Facebook iOS SDK.
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/06/12 12:42 PM (13 years ago)
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
07/06/12 01:04 PM (13 years ago)
Right. I have done all of that. I am trying to find what you mean by "Have you added the FB key in the assets folder document?"
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
07/07/12 07:26 AM (13 years ago)
FB now working. Anyone get Smart Alerts going in iOS?
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
07/07/12 07:41 AM (13 years ago)
Yes! You are where we all are. That's great! Congrats. Still waiting on Smart alerts help as well. Sevens
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
07/07/12 01:40 PM (13 years ago)
Finally got Smart Alerts working! My headache was my CFBundleIdentifier in the BT_info.plist was not matching my distribution profile.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/10/12 09:11 AM (13 years ago)
Guys / Gals, Would it be possible to provide the group with a few IOS / Xcode screenshots to allow us to better understand where you have placed the socialize code in Xcode. I think everyone would greatly appreciate this and get a better understanding where to insert the above code. Landmarks would be super helpful. Thanks Rad Doc
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
07/10/12 09:26 AM (13 years ago)
I agree Rad Doc. I'm struggling with socialize
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
07/12/12 02:20 PM (13 years ago)
My problem is on this part; can anybody expand on what and where you put each part of this (this is the same thing in the github documentation, so I don't know what the heck I'm doing wrong): Also, I can tell that I'm ALMOST there, because the Socialize toolbar shows up in my app from when the step after this one works right, looks COOL, but it just gives me an invalid consumer key error. I am SO close, I just need a little bit of guidance! UPDATE - I GOT IT WORKING!!!! WHOOHOOOO!!!! AND, an app I'm REALLY excited about JUST got approved by Apple!! Double excited right now!! 1. Add the following code to the appDelegate.m file in BT code. //import the socialize header #import <Socialize/Socialize.h> #pragma mark - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { // set the socialize api key and secret, register your app here: http://www.getsocialize.com/apps/ [Socialize storeConsumerKey:@"SOCIALIZE_CONSUMER_KEY"]; [Socialize storeConsumerSecret:@"SOCIALIZE_CONSUMER_SECRET"]; //your application specific code return YES; }
 
DannyH
Apple Fan
Profile
Posts: 122
Reg: Nov 30, 2011
location unknow...
2,220
like
07/12/12 03:25 PM (13 years ago)
Very good Daniel !! Could you please sum up all the tutorial parts ? This will be a great addon for the gang !
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
07/12/12 04:33 PM (13 years ago)
Daniel Would you like to post a video tutorial, id love to add socialize to my upcoming app
 
DROdio
Code is Art
Profile
Posts: 3
Reg: Jul 02, 2012
San Francisco
30
like
07/12/12 05:13 PM (13 years ago)
Hey Daniel, AWESOME to see that you got it working. If you write a tutorial up here about how you did it, we'll re-post your how-to on our Socialize blog and give Buzztouch some love. DROdio CEO, Socialize, Inc.
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
07/12/12 07:48 PM (13 years ago)
Well, this earlier guide by manutd is GREAT! It's what I used to go by, AND your Socialize guide and github, supplemented by the Vimeo video, are all excellent. It really is easy; I was overcomplicating things. The stumbling blocks I had were (I only did this in xCode so far): - making sure to put the right code in the right place in the linker flags section, if I'm saying that right. That screwed me up the first time I did it, it's really easy though - copying entire sections of code, rather than looking for where to insert Socialize specific code This is where I will try and make a guide with screenshots and highlighted text for all of you to see. The tricky part, if there is any, is in getting what @manutd put for us, and finding the sections of what he put that are ALREADY IN XCODE, and not pasting those again. Look for the parts in your files in xCode that @manutd tells you to do, and put the Socialize specific stuff right where it should be, according to his guide: I just tried it and it turned out to be very simple than i expected it to be. Follow the instructions at http://socialize.github.com/socialize-sdk-ios/getting_started.html#installing-the-sdk For BT customization....Do the following as part of Step 4 in the above guide 1. Add the following code to the appDelegate.m file in BT code. //import the socialize header #import <Socialize/Socialize.h> #pragma mark - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { // set the socialize api key and secret, register your app here: http://www.getsocialize.com/apps/ [Socialize storeConsumerKey:@"SOCIALIZE_CONSUMER_KEY"]; [Socialize storeConsumerSecret:@"SOCIALIZE_CONSUMER_SECRET"]; //your application specific code return YES; } 2. Enter the SOCIALIZE_CONSUMER_KEY and SECRET key above from the socialize account where you would have created your app. 3. Go to BT_viewController.h and add the following code which is enclosed in #ifndef SOCIALIZE. I have included the existing code below just to make it clear where we need to add the new code. #ifndef SOCIALIZE #import <Socialize/Socialize.h> #endif @interface BT_viewController : UIViewController <UIAlertViewDelegate, ADBannerViewDelegate>{ BT_item *screenData; UIView *progressView; /* iAd Views */ UIView *adView; id adBannerView; BOOL adBannerViewIsVisible; BOOL hasStatusBar; BOOL hasNavBar; BOOL hasToolBar; #ifndef SOCIALIZE SocializeActionBar *actionBar; #endif } @property (nonatomic) BOOL hasToolBar; #ifndef SOCIALIZE @property (nonatomic, retain) SocializeActionBar *actionBar; #endif 4. Go to BT_viewController.c file and do the following @synthesize hasStatusBar, hasNavBar, hasToolBar; #ifndef SOCIALIZE @synthesize actionBar; #endif //initWithScreenData -(id)initWithScreenData:(BT_item *)theScreenData{ if((self = [super init])){ [BT_debugger showIt:self:@"INIT"]; //set screen data [self setScreenData:theScreenData]; } #ifndef SOCIALIZE if (self.actionBar == nil) { self.actionBar = [SocializeActionBar actionBarWithKey:@"http://www.example.com/object/1234" name:@"Something" presentModalInController:self]; [self.view addSubview:self.actionBar.view]; } #endif return self; } Compile the code and thats it....You should see the socialize Action bar at the bottom of every view of your app..... Hope this helps.... Again, you don't copy and paste this entire previous block of code, you search for the parts that are already in your files in your appdelegate and controller files, and put what isn't there beneath what already is there. Also, I think @manutd in #4 called it BT_viewController.c, but in my project it was BT_viewController.m (I think). Really though, this is not that hard to do. I stressed over this, and after I read the github guide and watched the video, following along with what @manutd did, it's really pretty easy to do.
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
07/12/12 07:50 PM (13 years ago)
Now I have to figure out why the "share" function is only letting me share it by email. The share feature with Facebook and Twitter would probably help a ton. I'm thinking it's something to do with the API. I'm not too concerned with the smart alerts for now; I think my brain will go on overload if I try to do that right now. I'll look at the Facebook stuff, and then try to tackle Socialize for Android next. Hopefully it won't be too bad there either. I am seeing that I like XCode a lot better than Eclipse.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/13/12 09:38 AM (13 years ago)
Daniel, Can you provide screenshots of where you inserted code.
 
Mario
Code is Art
Profile
Posts: 58
Reg: Mar 21, 2011
location unknow...
580
like
07/13/12 10:16 AM (13 years ago)
Daniel, for facebook working you only have to do like this in manual: http://socialize.github.com/socialize-sdk-ios/facebook.html works perfectly...only didn't manage to get posting photos to facebook
 
Mario
Code is Art
Profile
Posts: 58
Reg: Mar 21, 2011
location unknow...
580
like
07/13/12 10:25 AM (13 years ago)
and you have to make app in facebook: https://developers.facebook.com and add app id in xcode
 
Annonymous
Profile
07/15/12 03:23 AM (13 years ago)
@ Daniel LaRusso Thanks for the tutorial. somehow I got an error when I add the following code to the appDelegate.m file in BT code. #pragma mark - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { // set the socialize api key and secret, register your app here: http://www.getsocialize.com/apps/ [Socialize storeConsumerKey:@"SOCIALIZE_CONSUMER_KEY"]; [Socialize storeConsumerSecret:@"SOCIALIZE_CONSUMER_SECRET"]; Xcode shown error: missing context for method declaration [3] Any idea? Cheers
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
07/19/12 06:12 PM (13 years ago)
Hey Anonymous, the thing I learned is that some of that code behind the # pragma mark ..... is already there in your appDelegate.m and if you post that full blurb, it'll give you errors. So what you have to do is, or what I did is, I did a File -> Search, and look for that "application didFinishLaunchingWithOptions" already in appDelegate.m Once I found it, I put the lines about the consumer part from Socialize, and it worked fine. It could just be a fluke, because I know I'm not that smart or good at programming, but after getting a lot of compile errors, I just had one of those eureka moments. I will try and copy and paste the code from my files and highlight what I put in and post it here for y'all to see. Sorry I haven't done that already; been really busy lately.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/20/12 03:06 AM (13 years ago)
@Manutd or Anyone who has successfully implemented Socialize. I've followed all the steps 1-4. I'm throwing 9 errors out of my app_Delegate.m file when ran. Can someone take a look at the attached screenshot and let us know if i installed it incorrectly. http://dl.dropbox.com/u/35241128/Sample%20Screenshot/Socialize%20Error%20Log.png http://dl.dropbox.com/u/35241128/Sample%20Screenshot/appdelegate%20m%20errors.png http://dl.dropbox.com/u/35241128/Sample%20Screenshot/appdelegate%20m%20erros%202%20.png
 
manutd
Aspiring developer
Profile
Posts: 33
Reg: Apr 21, 2011
California
2,280
like
07/20/12 05:45 AM (13 years ago)
I will be returning back to US in 3 weeks time and i will find sometime to make a tutorial. In my current circumstances its hard to get an internet access..good luck
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
07/20/12 06:15 AM (13 years ago)
@Rad Doc You have imported the socialize.h twice. Remove the second instance, clean, and rerun.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/20/12 06:50 AM (13 years ago)
@Red Dog, Thanks for the advice but i just tried it and i am producing the same 9 errors. See link http://dl.dropbox.com/u/35241128/Sample%20Screenshot/Socalize%20errors%20.png
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
07/20/12 08:54 AM (13 years ago)
Hey Rad Doc. In that blue shaded area, try removing return Yes; and possibly the } after it. You probably already have return True; lower in the file. Sorry, I do not have access to my xCode today.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/20/12 09:09 AM (13 years ago)
Doggs, That worked perfectly. Thank you so much. Task 1 of 3 down. Now to get to to share with FB and Twitter. Thanks Again
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
07/20/12 09:17 AM (13 years ago)
Hey Rad Doc, when you figure out Facebook and Twitter, please let me know how you did it. I think you just have to add one line beneath where you call up the consumer keys with your API, but I'm not sure
 
DannyH
Apple Fan
Profile
Posts: 122
Reg: Nov 30, 2011
location unknow...
2,220
like
07/20/12 09:17 AM (13 years ago)
Yep. The tasks to be done are: - fb and twitter integration - how to tell socialize each page id.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/20/12 11:49 AM (13 years ago)
Hey All, First off, a HUGE THANK YOU to Red Dog for getting me through my action bar installation today. I thought that I can maybe help someone else out who is struggling with getting the action bar installed into their app. I've attached a .zip file that contains 8 screenshots that should walk you right though the process and show you where to exactly paste your code. They are numbered steps 1-8 with the corresponding folders as the title. Paste the codes where the blue shading is and you should be good. It'll be great if someone can do this for the Facebook, Twitter and Entities sections of Socialize. Enjoy. Anthony http://dl.dropbox.com/u/35241128/Sample%20Screenshot/Scoialize%20Installation%20Screenshots.zip
 
RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
like
07/26/12 02:05 PM (13 years ago)
I just opened the ZIP, and there are only 7; looks to be missing screenshot #6
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
07/30/12 06:09 PM (13 years ago)
Is there any way to hide the socialize bar? I want it to show in every area of my app except for the image gallery - the socialize bar hides all of the image gallery options
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
07/30/12 08:06 PM (13 years ago)
You can add them in any screen type in your BT_Screens folder. I have for example in BT custom HTML screens etc etc.. Just remove from the delegate and add to the screen that you want.. thats how i did it anyway.. good luck
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
07/31/12 02:09 AM (13 years ago)
I actually figured out how to make each screen it's own entity which solves the problem. Now my #1 goal is to figure out how to add the buzztouch image option button onto the socialize action bar. The documentation says this is possible - "If you don’t like the default buttons on the bar, or if you’d like to add your own, you can do so by changing the itemsLeft and itemsRight properties. If you change these properties, you should specify an NSArray with elements of type UIView. You can also take advantage of the SZActionButton class, which allows you to specify both an actionBlock and an entityConfigurationBlock. The following example shows how you might add both an email and a panic button to the action bar." There is an example on the bottom of this page - http://socialize.github.com/socialize-sdk-ios/action_bar.html - I just spent an hour trying to get it on there with absolutely no progress..hopefully somebody can figure it out
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/31/12 03:08 AM (13 years ago)
Absentia, Would you be able to show us how you added entities to your application. A few screenshots would be a huge help. Having a tough time with entities, social media and smart alerts. Cant seem to figure them out. Thanks
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
07/31/12 10:55 AM (13 years ago)
I've only figured out how to make entire screens into entities - if I could figure out how to make each image in an image gallery an entity that would be amazing. Anyway here's how I did it...I'll copy the first two steps from manutd's view controller tutorial - 1. Add the following code to the appDelegate.m file in BT code. //import the socialize header #import <Socialize/Socialize.h> #pragma mark - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { // set the socialize api key and secret, register your app here: http://www.getsocialize.com/apps/ [Socialize storeConsumerKey:@"SOCIALIZE_CONSUMER_KEY"]; [Socialize storeConsumerSecret:@"SOCIALIZE_CONSUMER_SECRET"]; //your application specific code return YES; } 2. Enter the SOCIALIZE_CONSUMER_KEY and SECRET key above from the socialize account where you would have created your app. 3. Add the following line to your viewcontroller.h #import <Socialize/Socialize.h> 4. Add the following code to the BT_screen.h file of your choice (i.e. BT_screen_customHTML.h or BT_screen_rssReader.h) @property (nonatomic, retain) SZActionBar *actionBar; @property (nonatomic, retain) id<SZEntity> entity; 5. Add the following code to the corresponding BT_screen.m file inside of the viewWillAppear method if (self.actionBar == nil) { self.entity = [SZEntity entityWithKey:@"some_entity" name:@"Some Entity"]; self.actionBar = [SZActionBar defaultActionBarWithFrame:CGRectNull entity:self.entity viewController:self]; [self.view addSubview:self.actionBar]; } SCREENSHOT OF STEP 4 - http://postimage.org/image/sj4n9nhbr/ SCREENSHOT OF STEP 5 - http://postimage.org/image/oytatjkvz/ That's about it - for step 4, replace "some_entity" with a unique key and "Some Entity" with a unique name. The entity will create itself when used within the app - you don't need to create it on the socialize control panel.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/31/12 12:16 PM (13 years ago)
I did exactly as described in steps 3 and 4, and i am getting 5 errors. See attached. Cant understand why? http://dl.dropbox.com/u/35241128/Sample%20Screenshot/Entity1.png http://dl.dropbox.com/u/35241128/Sample%20Screenshot/Entity2.png
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
07/31/12 05:05 PM (13 years ago)
Ah sorry, add this line to your viewcontroller.h #import <Socialize/Socialize.h> that should hopefully fix the problem...I added this step to the tutorial two posts up
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
08/01/12 04:21 AM (13 years ago)
Ab, I had that already in the view controller.h file. I am getting undeclared errors for my SZEntity. See attached. http://dl.dropbox.com/u/35241128/Sample%20Screenshot/entity3.png
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
08/02/12 09:32 AM (13 years ago)
That's strange - the only way I can re-produce that error is by removing #import <Socialize/Socialize.h> from the viewcontroller.h Maybe try adding #import <Socialize/Socialize.h> to menulist.h?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
08/04/12 01:57 AM (13 years ago)
Ok - after three days of fumbling around with Xcode I have finally figured out how to make each image in an image gallery into its own entity. I've also managed to implement the save and refresh buttons into the action bar - here's a quick tutorial starting from scratch--- 1. Add the following code to the appDelegate.m file in BT code. //import the socialize header #import <Socialize/Socialize.h> #pragma mark - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { // set the socialize api key and secret, register your app here: http://www.getsocialize.com/apps/ [Socialize storeConsumerKey:@"SOCIALIZE_CONSUMER_KEY"]; [Socialize storeConsumerSecret:@"SOCIALIZE_CONSUMER_SECRET"]; //your application specific code return YES; } 2. Enter the SOCIALIZE_CONSUMER_KEY and SECRET key above from the socialize account where you would have created your app. 3. Add the following line to your viewcontroller.h #import <Socialize/Socialize.h> 4. Add the following lines of code to BT_Screen_images.h - example placement is displayed in this screenshot - http://www.pixobit.com/wp-content/uploads/2012/08/Screen-shot-at-2012-08-04-0.22.33-AM.png NSString *socializePic; @property (nonatomic, retain) NSString *socializePic; @property (nonatomic, retain) SZActionBar *actionBar; @property (nonatomic, retain) id<SZEntity> entity; 5. In BT_Screen_images.m, scroll about 3/4 of the way down until you find the following chunk of code - //updates navigation -(void)updateNavigation { //figure out the title in the navigation bar... NSString *tmpTitle; if([[BT_strings getJsonPropertyValue:self.screenData.jsonVars:@"showCountInNavBar":@"0"] isEqualToString:@"1"]){ tmpTitle = [NSString stringWithFormat:@"%i of %i", (currentPageIndex + 1), [self.photos count]]; }else{ tmpTitle = [BT_strings getJsonPropertyValue:self.screenData.jsonVars:@"navBarTitleText":@""]; } self.title = tmpTitle; //figure out the image's title (assume we don't have one)... BT_item *thisImage = [self.imageList objectAtIndex:currentPageIndex]; [self.titleLabel setText:@""]; [self.titleBox setHidden:TRUE]; if([thisImage.jsonVars objectForKey:@"imageTitle"]){ if([[thisImage.jsonVars objectForKey:@"imageTitle"] length] > 1){ [self.titleLabel setText:[thisImage.jsonVars objectForKey:@"imageTitle"]]; [self.titleBox setHidden:FALSE]; 6. Add the following code directly after the code shown above - example placement is displayed in this screenshot - http://www.pixobit.com/wp-content/uploads/2012/08/sdsd.png socializePic = [thisImage.jsonVars objectForKey:@"imageURL"]; self.entity = [SZEntity entityWithKey:socializePic name:socializePic]; self.actionBar = [SZActionBar defaultActionBarWithFrame:CGRectNull entity:self.entity viewController:self]; //add save image button to action bar SZActionButton *saveButton = [SZActionButton actionButtonWithIcon:nil title:@"Save"]; saveButton.actionBlock = ^(SZActionButton *button, SZActionBar *bar) { UIImage *image = [self imageAtIndex:currentPageIndex]; UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil); }; //add refresh button to action bar SZActionButton *refreshButton = [SZActionButton actionButtonWithIcon:[UIImage imageNamed:@"refresh_white.png"] title:nil]; { refreshButton.actionBlock = ^(SZActionButton *button, SZActionBar *bar) { for(BT_zoomingScrollView *page in visiblePages) { [page removeFromSuperview]; } [self downloadData]; }; self.actionBar.itemsLeft = [NSArray arrayWithObjects:[SZActionButton viewsButton], refreshButton, saveButton, nil]; [self.view addSubview:self.actionBar]; That should do it - launch the app in the simulator and go to your image gallery. You will hopefully see a screen with an action bar that looks like this - http://www.pixobit.com/wp-content/uploads/2012/08/Screen-shot-at-2012-08-04-0.30.39-AM.png Since the action bar is called when the navigation display changes, a new entity will load with the image url when you swipe left or right to the next/previous image I'm not a coding pro by any means so I may be overcomplicating it, but it does definitely work - if anybody isn't getting it let me know, hopefully I'll be able to help If you don't want any of the extra buttons on the action bar just replace step six with this code - socializePic = [thisImage.jsonVars objectForKey:@"imageURL"]; self.entity = [SZEntity entityWithKey:socializePic name:socializePic]; self.actionBar = [SZActionBar defaultActionBarWithFrame:CGRectNull entity:self.entity viewController:self]; [self.view addSubview:self.actionBar];
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
08/04/12 02:38 AM (13 years ago)
@Ab, Thanks for your help the other day. I tried it all adding and removing #import <Socialize/Socialize.h> from both the menu.h and still no luck. When i remove that those lines of code,, it was perfect with action bar at bottom but no entities set. its blowing my mind. I'm thinking maybe something is wrong with the copy/paste of code into app. Anthony
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
08/04/12 08:56 AM (13 years ago)
Looking for clarification please If I just wanted socialise to appear in custom HTML screens only, I put all the code that I put in the view controller .h/m files into the BT_customhtml .h/m files instead?
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
08/04/12 09:05 AM (13 years ago)
Or is it the code from the app delegate files that I need to move to BT_customHTML screen? Thanks
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
08/04/12 01:26 PM (13 years ago)
@Rad Doc, I just implemented the code successfully into an app using the tutorial I posted so copy/paste doesn't seem to be the issue. I'm racking my brain trying to figure out what the problem could be...Did you closely follow steps 1-3 on this page? - http://socialize.github.com/socialize-sdk-ios/getting_started.html - I don't know what the best way to send files is, but I'd be happy to take a look at your project it if you want to send it my way @Bonzo, no - aside from the first two steps, my tutorial and manutd's tutorial are completely different. The ONLY code that you should have in viewcontroller.h is #import <Socialize/Socialize.h> --- viewcontroller.m should not have any socialize related code inside of it. Manutd's method basically creates one entity and shows it on every single screen - my method creates entities on individual screens - use whichever one works better for your app
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
08/09/12 06:43 AM (13 years ago)
Hi - Can someone point me in the right direction to find the BT_viewController.c file? I'm using iOS 1.5; I've also searched through my 2.0 apps and been unable to locate this & move forward with step 4. >>>>4. Go to BT_viewController.c file Any insight would be highly appreciated! Thanks!!
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
09/24/12 07:21 PM (13 years ago)
Absentia, I'm finally getting around to incorporating socialize and trying to get the action bar to appear on all html and image gallery screens. I've started with html but no matter what I try a comment for one screen appears on them all. Here is the code I have in the BT_screen_htmldoc.m file (2.0): if (self.actionBar == nil) { self.entity = [SZEntity entityWithKey:@"localFileName" name:@"localFileName"]; self.actionBar = [SZActionBar defaultActionBarWithFrame:CGRectZero entity:self.entity viewController:self]; self.actionBar = [SZActionBarUtils showActionBarWithViewController:self entity:self.entity options:nil]; } What am I supposed to put for the self.entity so that each screen will become its own entity?? THANKS!!
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
09/24/12 07:44 PM (13 years ago)
You could try adding this code to your htmldoc.m: NSString *htmlEntity = [NSString stringWithFormat:@"%@", [BT_strings getJsonPropertyValue:screenData.jsonVars:@"navBarTitleText":@""]]; this will create the entity based on whatever the nav bar text is - the nav bar doesn't even need to be displayed..as long as you have nav bar text in your control panel it will use that text. so the self.entity line would look like this: self.entity = [SZEntity entityWithKey:htmlEntity name:htmlEntity]; You say the same action bar appears on all of the screens? Even non html screens? That shouldn't happen. Did you follow the view controller tutorial by manutd, or did you follow the individual screen tutorial by me? If the same action bar shows everywhere you could try getting rid of the "if (self.actionBar == nil)" method and just have it like this: self.entity = [SZEntity entityWithKey:htmlEntity name:htmlEntity]; self.actionBar = [SZActionBar defaultActionBarWithFrame:CGRectZero entity:self.entity viewController:self]; self.actionBar = [SZActionBarUtils showActionBarWithViewController:self entity:self.entity options:nil];
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
09/25/12 04:08 AM (13 years ago)
It was appearing just on html screens. I added the code you mentioned above and... it works!!! Can I use the same code for image gallery screens? Thank you so much for your help!!!
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
09/25/12 09:33 AM (13 years ago)
about 8 posts up I put a tutorial on how to turn the image url into a socialize entity. I like doing it this way as opposed to just using the nav bar text because it allows users to share the images
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
10/04/12 12:06 AM (13 years ago)
Anyone implement the entity loader in their app? Here is Android code http://socialize.github.com/socialize-sdk-android/entity_loader.html?v=v2.5.5#entity-loader
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
11/04/12 07:27 AM (13 years ago)
Hi I have been trying to install Socialize into my iOS BT app, but struggling to get it to work, keep getting 51 warning signs all saying the same thing: Deprecations 'SocializeActionBar' is deprecated: Please use SZActionBar on the utility functions in SZActionBarUtils Does anyone know what this means as I believe this is the only thing stopping it from working. Really stuck, any help welcome. I have been through the guides posted in this thread but it doesn't work for me.
 

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.