Page 1 of 1

Facebook API opens up new browser and doesn't work on iphone

Posted: Wed May 29, 2013 11:20 pm
by New Mobile Guy

You can see the odd behavior on my app at:
politics.app.appery.io

On the web, the facebook connection works fine. It logs you into facebook, and redirects to the right page, bringing in the facebook/friend data, etc.

On the iphone, however, it doesn't work at all. It oddly redirects to appery.io/m/login.seam, and effectively ends the experience.

Any ideas on either of these? I'm using the Facebook plug in, and here's my javascript code for when you click the login button:

var callbackUrl = "http://appery.io/app/view/2df48e0a-f7...";

var url="+"&redirect_uri="+callbackUrl+"&scope=&response_type=token]https://www.facebook.com/dialog/oauth...";

window.location = url;

Thanks!


Facebook API opens up new browser and doesn't work on iphone

Posted: Wed May 29, 2013 11:27 pm
by New Mobile Guy

Sorry, I typed too soon. I fixed it myself. I just needed to fix the callbackurl. It now works. Thanks!