Open another App from a GameSalad App (Specifically Facebook)

coojamcoojam Member Posts: 26
edited January 2012 in Working with GS (Mac)
Hi guys,

Just wondering if anybody knows how to achieve this?

I have a button in iOS Duck Up that I'd like to open the Facebook app straight to the game's Facebook Page, allowing players to then 'Like' the page if they wish.

I have the Pro membership and have it currently set to go to the Facebook fan page within Safari. However, I have seen reference to being able to open apps directly from within a GS app, specifically in the following thread: http://forums.gamesalad.com/discussion/17938/link-game-to-post-scores-on-facebook

It basically says to use the url "fb://profile "

However, I can't get any variation of the "fb://" function to work. It just tries to open it in Safari.

Any ideas?

Comments

  • coojamcoojam Member Posts: 26
    Sorry guys but I'm going to have to bump this as it's slipping down the list of threads :)
  • dmilinovichiiidmilinovichiii Member Posts: 620
    Do you have the Facebook app downloaded? If you don't then it won't work. Maybe this will help?

    http://iphonedevtools.com/?p=302
  • coojamcoojam Member Posts: 26
    Yeh I have the FB app installed. I've seen reference to using code, such as in the link on that page. It says use the following:

    NSURL *theURL = [NSURL URLWithString:@fb://];

    [[UIApplication sharedApplication] openURL:theURL];

    But how are you supposed to use that in GS?
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    try ticking embedded browser when using url rule.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    At one point you could use the fb:// stuff in the openURL behavior Not sure if it still works. But you would need Pro to access the behavior if it does still work.

    Cheers
  • coojamcoojam Member Posts: 26
    Yeh the fb:// stuff is what I meant, that's what I found reference to on the forums. Why would that functionality have been dropped?
  • veibhavveibhav Member Posts: 15
    edited March 2012
    Can I open safari from game app and open url in that ??
  • mickeydmickeyd Member Posts: 7
    i just updated my app QuickWordz. I used open url to open my website which has a redirect to fb://profile/profileID#

    It works perfectly! Hope that helps.
Sign In or Register to comment.