We already have Facebook working on our main desktop app without an issue. When I added the same setup code to our mobile site I received an error from the JavaScript SDK:
Received message of type object from https://s-static.ak.facebook.com, expected a string
Then, I changed the setup code to an exact replica from here: https://developers.facebook.com/docs/guides/mobile/web/ and received the exact same message.
This error only shows when the user-agent is iOS or Android in Chrome Developer Tools or in the iOS Simulator. When it’s running from the desktop, we aren’t seeing this error.
Any idea what’s going on here?
Thanks 🙂
I had the same error. This isn’t necessarily the reason you’re getting it, but I ended up looking at the packets being received by my iphone simulator, and here’s the error from s-statick.ak:
For me, the error is that on my device(s), I’m accessing the site through an ip address (192.168.xx etc) and on local development I have hosts routing localhost to a url that is in my facebook app config… so the IP isn’t configured for the app.
Facebook won’t let me use an IP address, so it seems like the only option is a test deploy or a DNS server. Hope this helps you out.