Page 1 of 3
Issue with Facebook API
Posted: Mon Jun 02, 2014 12:35 am
by Cody Blue
I've followed all the steps in the tutorial here:
http://devcenter.appery.io/tutorials/...
After logging in with Facebook I get erroneous /me page and an OAuthExecption (screenshots are attached), and am wondering what is the reason.
Thanks in advance for your feedback.
Issue with Facebook API
Posted: Mon Jun 02, 2014 5:54 am
by Evgene Karachevtsev
Hello Cody,
Please clarify, did you make any changes in template Facebook_helper.js or else where in your project that were not mentioned in the tutorial? This error means that access_token doesn't pass to Facebook_MeService.
Issue with Facebook API
Posted: Mon Jun 02, 2014 5:57 pm
by Cody Blue
Thanks for the follow-up.
I haven't made any changes to the template, and again tried reimplementing all the steps in the tutorial. I've set the start-page of my project (the only app under my appery account) to Fecebook_Login, and you may take a look.
The only deviation from the tutorial is that I am not able to set the namespace in Facebook developer account app to appery_io_app (it gives already used by some other app error): but I believe this shouldn't be the cause of issues.
Thanks in advance.
Issue with Facebook API
Posted: Wed Jun 04, 2014 6:43 am
by Evgene Karachevtsev
Hello Cody,
The problem is in your custom JS ClearHash. If you disable code in this script application will work properly.
Issue with Facebook API
Posted: Thu Jun 05, 2014 8:26 pm
by Cody Blue
Hi Evgene - Thank you very much spotting this!
Issue with Facebook API
Posted: Sun Jul 06, 2014 11:38 pm
by Cody Blue
Hello,
Since about a month, I haven't changed the above implementation for logging in with Facebook within my project. Things were working perfectly fine. However on testing today, I get the attached Page not found message, and there is no message on console.
What has gone wrong here?
Thank you.
Issue with Facebook API
Posted: Mon Jul 07, 2014 12:01 am
by Illya Stepanov
Hi Cody -- Could you please describe what actions have you made before that error message?
Issue with Facebook API
Posted: Mon Jul 07, 2014 7:16 pm
by Evgene Karachevtsev
Hello Cody,
Please check what redirect url you have set. Probably there are some mistakes or misprints there
Issue with Facebook API
Posted: Mon Jul 07, 2014 8:43 pm
by Cody Blue
Hi Evgene,
I had not made any changes to the default Facebook_Helper script, but after reviewing the present version of the tutorial again, I have changed the redirect URL code as indicated:
http://devcenter.appery.io/tutorials/...
var url = "https://www.facebook.com/dialog/oauth...=" + Facebook_Settings['client_id'] + "&redirect_uri=" + callbackUrl + "&scope=publish_actions&response_type=token";
Unfortunately, same problem - I get page not found.
What might be an issue here?
Thank you.
Issue with Facebook API
Posted: Mon Jul 07, 2014 10:09 pm
by Illya Stepanov
Hi Cody,
Please check the value inside your variable 'callbackUrl' (e.g. you can call it with simple alert(); message).