Jgc
Posts: 0
Joined: Wed Mar 07, 2012 8:58 pm

Facebook Login

Thanks dornz, I will be watching this topic for sure!^^

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Facebook Login

Jgc
Posts: 0
Joined: Wed Mar 07, 2012 8:58 pm

Facebook Login

Nice!^^

dornz
Posts: 0
Joined: Thu Apr 05, 2012 9:11 pm

Facebook Login

So I had this working in the browser using client-side authentication with the javascript sdk (https://developers.facebook.com/docs/.... When I brought it into xcode, the facebook login button background doesn't show up and the button does nothing. I'm guessing that this method will not work with phonegap. Anyway, I tried using the server-side flow method (https://developers.facebook.com/docs/...) that you use in your walkthrough. It seems to work initially, but when Facebook redirects back to the app, the page is blank white. Any idea how to fix this?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Facebook Login

Yes, the current example only works for mobile web app.

dornz
Posts: 0
Joined: Thu Apr 05, 2012 9:11 pm

Facebook Login

But this is so very close to working. Facebook authentication works and correctly re-directs back to the correct page of the app. It's just that the page doesn't display/load for some reason. Do you know what the issue is here? There must be a solution to this?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Facebook Login

Page is not loaded when running a mobile web app..?

dornz
Posts: 0
Joined: Thu Apr 05, 2012 9:11 pm

Facebook Login

Well, I thought it was working in the browser as a mobile web app but I just tested and I also get the blank white page after the Facebook redirect.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Facebook Login

1) Make sure the callback URL is correct
2) Check there are no JavaScript error

dornz
Posts: 0
Joined: Thu Apr 05, 2012 9:11 pm

Facebook Login

The callback url is correct and I don't see any Javascript errors but I did find out something interesting.

The code that Facebook returns in the url ends in "#=". If I remove this from the end, the page loads.

Return to “Issues”