Bachi
Posts: 0
Joined: Mon Apr 22, 2013 1:47 am

Facebook integration on different browsers

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.

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

Facebook integration on different browsers

Hello!

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

Bachi
Posts: 0
Joined: Mon Apr 22, 2013 1:47 am

Facebook integration on different browsers

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).

Bachi
Posts: 0
Joined: Mon Apr 22, 2013 1:47 am

Facebook integration on different browsers

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,

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Facebook integration on different browsers

Hi Bachi,

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

Thanks & regards.

Bachi
Posts: 0
Joined: Mon Apr 22, 2013 1:47 am

Facebook integration on different browsers

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...

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Facebook integration on different browsers

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.

Bachi
Posts: 0
Joined: Mon Apr 22, 2013 1:47 am

Facebook integration on different browsers

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,

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Facebook integration on different browsers

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.

Bachi
Posts: 0
Joined: Mon Apr 22, 2013 1:47 am

Facebook integration on different browsers

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.

Return to “Issues”