2016-02-15

I am trying to log in to Facebook with a com.codename1.social.FacebookConnect object. However, after entering the correct username and password I am taken to a page with the following error message:

Redirection Error - You are receiving this error for one of the following reseasons (sic):
- Your redirection is to another redirection record. This can cause a loop and is not allowed in our system.
- You may have recently removed your HTTP Redirection then your DNS is already changed on the name server but your system (computer) still has this IP (the redirection IP) cached. Please give this up to one hour before it is completely removed from your local cache.

This has been tested in the simulator and on an iPhone 6 that hasn't got the FB app installed.

I have more or less followed the example at http://www.programcreek.com/java-api-examples/index.php?source_dir=codenameone-demos-master/SignIn/src/com/codename1/demos/signin/SignIn.java. In essence:

The redirect URI that I have been using is listed under "Valid OAuth redirect URIs" on the Facebook app settings page (Advanced/Client Settings). What am I doing wrong

Show more