invalid sso_key error only on device where Facebook app is installed...

I tried Rob’s new tutorial and managed to get my friends list on an iPad where I did not have the Facebook app installed. As soon as tap the “Pick Friends” button my browser fires off a Facebook login screen, after login I’m asked if I agree to my app talking to Facebook etc etc and before you know it you have the friends listed in your app!!! Great going. 

Next I tried the same app, same build, same certs etc on my iPhone where Facebook app is installed and logged in. I hit the same “Pick Friends” button and this fires off a Facebook API page which waits a little bit and eventually comes back with the following error : 

“Invalid sso_key parameter. The key MyAppName does not match any allowed bundle IDs. Configure your iOS bundle ID athttp://developer.facebook.com/apps/xxxxxxxxxxxxxxxx

I am quite suprised. I have seen the same error discussed in the forum but in those cases it seemed that the solution was to fix something on Facebook side. Now in my case Facebook setup is fine and access is working well as long as Facebook app is not installed on my device. Any idea what might be wrong and how to go about fixing it?

Many thanks for your support. 

Ok. Found the answer to my question. I was building using my AdHoc Developer cert and for some reason this works when Facebook app is not installed on your device. I tried building using my AdHoc Distribution cert and this worked on the device with the Facebook app as well as the other without the app. Not sure if this Gotcha is covered somewhere and I missed it. If not please capture it in documentation for the benefit of others. 

Ok. Found the answer to my question. I was building using my AdHoc Developer cert and for some reason this works when Facebook app is not installed on your device. I tried building using my AdHoc Distribution cert and this worked on the device with the Facebook app as well as the other without the app. Not sure if this Gotcha is covered somewhere and I missed it. If not please capture it in documentation for the benefit of others.