Page 2 of 5

How do I login with the Facebook plugin?

Posted: Mon Dec 09, 2013 9:49 pm
by adam griffin

I click on the link the error gave me and it login. I check if it would work on my phone. It didnt login.


How do I login with the Facebook plugin?

Posted: Mon Dec 09, 2013 9:56 pm
by Maryna Brodina

Don't do prevar iframe = document.createElement("IFRAME");
iframe.setAttribute("src", url);
iframe.style.top = 0;
iframe.style.bottom = 0;
iframe.style.left = 0;
iframe.style.width = 100 + '%';
iframe.style.height = 100 + '%';
iframe.style.zIndex = 99999;
iframe.style.position = 'absolute';
iframe.onload = function() {
var self = this;
var vars = parseUrlVars(self.contentWindow.location.href);
if (vars['code']) {
localStorage.setItem('code', vars.code); / store secret code /
$(iframe).remove();
Appery.navigateTo('FacebookPublishing_AfterLogin', {
reverse: false
}); / Navigate to page 'facebookAfterLogin' /
}
};
document.body.appendChild(iframe);/pre just follow tutorial http://docs.appery.io/tutorials/build...prelocalStorage.setItem('code', '');
window.open(url);/pre


How do I login with the Facebook plugin?

Posted: Sat Dec 14, 2013 11:21 am
by adam griffin

I switch the code out. It worked on my computer and on my phone for awhile. Now when I click the login button the screen refresh back to the login screen. Im not sure whats going on.


How do I login with the Facebook plugin?

Posted: Sat Dec 14, 2013 11:21 am
by adam griffin

How do I login with the Facebook plugin?

Posted: Sun Dec 15, 2013 6:30 am
by Alena Prykhodko

Adam, sorry for delay.
Do you test installed app? What device and OS version do you use?


How do I login with the Facebook plugin?

Posted: Sun Dec 15, 2013 8:19 am
by adam griffin

Yes I tested it on my Samsung Galaxy s4


How do I login with the Facebook plugin?

Posted: Sun Dec 15, 2013 8:41 am
by adam griffin

I just tried it on a nexus tablet. I clicked the login button and it sent me to the facebook login then after I put my email and password in it navigated to appery.io/htm#404 something. And it wants me to login to appery.


How do I login with the Facebook plugin?

Posted: Sun Dec 15, 2013 8:51 pm
by Alena Prykhodko

Hello Adam! Sorry for delay.
We need some time to test on device, we'll update asap.
Please clear the cache and try again. Let us know about result.


How do I login with the Facebook plugin?

Posted: Mon Dec 16, 2013 3:39 am
by adam griffin

I just started from scratch with the documentation http://docs.appery.io/tutorials/build... . When I click the connect to facebook button. It now goes to Facebook to login in but once I login it goes to http://appery.io/404.htm#= instead of to the next page of the app.


How do I login with the Facebook plugin?

Posted: Mon Dec 16, 2013 6:31 am
by Maryna Brodina

Hello! Please check you've specified correct redirect URL.