adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How do I login with the Facebook plugin?

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How do I login with the Facebook plugin?

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

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How do I login with the Facebook plugin?

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.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How do I login with the Facebook plugin?

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

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How do I login with the Facebook plugin?

Yes I tested it on my Samsung Galaxy s4

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How do I login with the Facebook plugin?

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.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How do I login with the Facebook plugin?

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.

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How do I login with the Facebook plugin?

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How do I login with the Facebook plugin?

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

Return to “Issues”