Solving issues with showFeedDialog in Facebook Applications

Facebook October 5th, 2009 @ 11:10

Damn, it’s annoying when you get stuck at a single point in development.

When continuing development of an Facebook Iframe application, I got stuck when trying to implement the showFeedDialog feature. For some reason, I couldn’t get the feed form dialog to show, even though I had configured the initialization properly and was using the correct methods and syntax.

I read through the extensive (and inconsistent thus confusing) Facebook developers’ documentation, but couldn’t really find anything to help me. I’ve probably tried all of the various ways to initialize the app and use the API by now, and also tried to use streamPublish instead.
Also, the return values from the API insinuated that the dialog should actually be displayed (returned true when invoking the method).

Back to basics

So I figured it’s best to go back to the basic levels and read through the Getting started docs. And there it was. In a screenshot of the application settings, I noticed that they’d specified the Connect URL and set it to the same as the canvas URL. That’s the one thing I’d missed!
I guess the problem was that I didn’t see this as a Connect application, as it’s running in an Iframe.
But anyway, setting the connect url solved the problem and the feed dialogs popped up as intended!

Confusing Wiki docs

The Facebook developers’ wiki is full of (useful) information, but it seems like it’s got lots of counter-information with different ways of using their implementation. It gets confusing quickly and is quite hard to troubleshoot. I hope they manage to sort it out some day…

Championship Manager Online with Facebook Connect

Jadestone August 20th, 2009 @ 16:08

Today we released a new version of Champ Man Online! It’s a very exciting release, as it’s our first live implementation of Facebook Connect in any of our games.

It’s been an interesting development journey, and we’ve learned a lot about using the Facebook API and working with Facebook applications.

So far, the community really seem to like the possibility to connect their CMO accounts with their Facebook accounts. I’m certain this will make the game even more fun, now that it’s easier to share your CMO experience with your friends on Facebook!

What the change means to the users

Here’s the news item posted on the CM-Online site:

Today we will introduce Facebook Connect to CM-Online!

Enhance your CM-Online experience with Facebook Connect!

You can now link your Facebook account with your CM-Online one.

If you do, you can

* See which of your Facebook friends that are playing CM-Online
* Choose teams and play with your friends much easier
* Receive updates on your friends’ progress, and they on yours
* Invite other friends to play through the easy to use Facebook interface
* Get your name and picture in the game for you and your friends to see
* No need to log into CM-Online if you are already logged into Facebook

You will be able to publish the following events to Facebook

* Let others know when you have a new achievement
* Watch matches from CM-Online
* Make pre match comments
* Show off your latest new player
* Let everyone know when you have been appointed the new manager for a team

Browse all our game worlds and teams

Also, we’ve added the quite cool feature of browsing through all the CM-Online game worlds and their teams! And even more interesting; everyone can share it all by posting their teams, world rankings etc to Facebook.  No one will keep their success a secret from now on… ;)

(Of course, there was a number of other smaller improvements and changes to the game.)