Game Development Community

Facebook

by Pedro Vicente · in iTorque 2D · 07/03/2011 (5:17 pm) · 8 replies

@GG staff

Are there any plans to support social networking in the upcoming iTorque releases?
I noticed that the code has this macro.

#if defined(_USE_SOCIAL_NETWORKING)
    socialNetworkingManager->socialNetworkingToResignActive();
#endif //_USE_SOCIAL_NETWORKING

Did anybody else in these forums implemented these features and wants to share some experience on this? (with OpenFeint for example).

#1
07/03/2011 (6:56 pm)
this and a twitter link would be great.




!!!
#2
07/04/2011 (12:43 pm)
Facebook has an iOS SDK; did anyone ever integrated this with iTorque? Any future plans to to so? What would be the challenges involved?

developers.facebook.com/docs/sdks/
#3
07/04/2011 (1:16 pm)
What you found is a relic of an OpenFeint hook. The system was designed to allow for OpenFeint, Scoreloop, Facebook, etc. However, it was never fully finished or documented, so I cut out most of the code.

I was looking at the concept of integrating Facebook into iT2D this weekend and it does not look that difficult if you know Objective-C. It's a fairly straightforward SDK.
#4
07/04/2011 (1:40 pm)
Thanks Michael

I have OpenFeint running, thanks to this excellent tutorial

www.garagegames.com/community/forums/viewthread/104583

it seems OpenFeint has some Facebook connection feature (have not tried it yet) so I was wondering if that would be enough or not;

I also want to add GameCenter, just wondering at the moment how much of an overlap this is.

Something like

1) OpenFeint alone is enough (allows Facebook and GameCenter connection)
2) OpenFeint + Game Center SDK is needed to access both
3) OpenFeint + Game Center + Facebook iOS SDK is needed

does anyone in this forum has some experience with this?
#5
07/06/2011 (8:39 pm)
Hi Michael, it's good to know iT2D is going to support Facebook natively. But OpenFeint already included the Facebook iOS SDK so the build might get conflicted if the game need to use OpenFeint. Xcode compiler would throw errors of duplicated symbols, etc.

We have faced this problem before and tried to remove the SDK from OpenFeint but it seemed they made a deep integrated with their codes. So we had to reuse the Facebook iOS SDK included in OpenFeint. However OpenFeint still be using the old SDK version so it's quite a challenge for iT2D to support Facebook natively and OpenFeint at the same time?

Hope this can help?
#6
07/06/2011 (9:21 pm)
@An Ngunyen
yes, it helps, thanks. I got the OpenFeint (OF) SDK in code running but I am still implementing all the features. So, if OF *already* has the Facebook iOS SDK integrated then that's 1 less SDK that I have to put; definitively not in need for 2 SDK's of the same :-).

What about GameCenter? I saw a MeYuMe game on your site and it advertises OF, GameCenter and Facebook (way to go!). I see that OF links with the GameCenter framework.

Did you use *only* the OF API calls? Or native GameCenter API calls?
#7
07/10/2011 (10:44 am)
Hi Pedro, we used the Apple game center api, separately from OF.
#8
07/10/2011 (2:15 pm)
Hi Scott
I did the same myself this weekend, using this code

www.garagegames.com/community/forums/viewthread/122529

Regarding Facebook so far I am using the OF API like this

void postToSocialNetwork( S32 score )
{
    NSString *text;
    text = [NSString stringWithFormat:@"I scored %d on %@", score, @"AppName"];    
	[OFSocialNotificationApi sendWithPrepopulatedText:text originalMessage:nil imageNamed:nil];
}

but it seems there is more to this, since I get the OF dialog to post on a Facebook page but nothing shows up in the page.