Page 1 of 2

Facebook integration on different browsers

Posted: Mon Jul 28, 2014 2:02 pm
by Bachi

I have done Facebook integration over and over again in case I missed something. It's working fine on Appery's internal testing (web browser), but nothing has appearing on Appery's own testing app and regular app (app already on store).
Thank you for your quick help in advance.


Facebook integration on different browsers

Posted: Mon Jul 28, 2014 3:13 pm
by Maryna Brodina

Hello!

Do you integrate Facebook using this doc http://devcenter.appery.io/tutorials/...?


Facebook integration on different browsers

Posted: Mon Jul 28, 2014 3:23 pm
by Bachi

Maryna,
Yes, we did follow this doc and did it over and over agin. It works on your testing web browser, the problem is it not working on native app browsers ( your test app and apps on store).


Facebook integration on different browsers

Posted: Mon Jul 28, 2014 4:45 pm
by Bachi

Now, I found out the reason why it's doesn't appear. It seems to, user hasn't been logged in (it's appears after I signed-in). Hence, I have to let user sign-in first after the install for one-time, not multiple times. Perhaps, if there is other way around, such those buttons appear regardless signed-in, then it will ask for it after the click (it might discourage user for further social engagements...)
My question is, what is the best practice to sign-one for good? In other words. How to make one time Facebook sign-in?
Hopefully, it will address the issue. Thanks,


Facebook integration on different browsers

Posted: Tue Jul 29, 2014 2:58 am
by Yurii Orishchuk

Hi Bachi,

Please give us your app Public link and describe steps to reproduce this problem.

Thanks & regards.


Facebook integration on different browsers

Posted: Tue Jul 29, 2014 3:24 am
by Bachi

I think found out the issue. Actually, it was more behavioral than technical. User has to logged-in, in order to get appeared Facebook buttons.

Yurii,
Is there way to get one-time sign-in and save the user?

Here is the public links: http://appery.io/app/view/b47b5c46-b6...


Facebook integration on different browsers

Posted: Wed Jul 30, 2014 3:28 am
by Yurii Orishchuk

Hi Bachi,

Glad you have managed to fix this problem.

To implement described logic you need:

1 Invoke login service.

2 On success "login" service event, store session token and invoke "update" service.

3 On success "update" service event - do what you need.

Regards.


Facebook integration on different browsers

Posted: Thu Jul 31, 2014 4:45 pm
by Bachi

I followed this logic but it seems there is something missing. Would you mind take one more look at it?
Actually, it updates successfully and bypass the login process however user hasn't been recognized (it might not been saved previously).
Thank you,


Facebook integration on different browsers

Posted: Fri Aug 01, 2014 1:28 am
by Yurii Orishchuk

HI Bachi,

Please provide us more details about your issue, perhaps with screen shots, cause of currently we can not fully figure out your problem.

Regards.


Facebook integration on different browsers

Posted: Fri Aug 01, 2014 2:36 am
by Bachi

This method isn't working!

  1. I don't think "update" is appropriate for this. Actually, it caused blinking when you open the app.
  2. Not storing user successfully.
  3. In result, if you open app for the second time, it blinks it first then redirects to the main page, when you press "back" button it will take to the "Sign in with Facebook". And then it won't let you signed in, in other words, there will be social buttons are appearing.