Vitor Zaninotto
Posts: 0
Joined: Mon Dec 08, 2014 2:38 am

Facebook Login (not web authentication)

I ́m building a Facebook login on my Appery App. I want the use the native Facebook login authentication (that uses Facebook App already instaled on mobile to login) and NOT the web version.

I installed the Appery Facebook API but the login uses the Web format.

What I need is that:
https://developers.facebook.com/docs/...

Have anyone implemented it thru Appery?

Thanks

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

Facebook Login (not web authentication)

Hi Vitor,

Only way to do it with this facebook api - use - your custom cordova plugin.

Also i can suggest you to learn about this plugin: https://github.com/Wizcorp/phonegap-f...

Here is how to use 3rd party cordova plugin in your appery.io app.

http://devcenter.appery.io/documentat...

Regards.

LuisMa Suárez Gutiérrez
Posts: 0
Joined: Mon Aug 18, 2014 9:12 pm

Facebook Login (not web authentication)

i tried to use to use the facebook phoneGap plugin and it installed fine.
i just have a question regarding what that measn for "platform" in facebook setting?
if im using phonegap it mean, its native adroid?
I can logon using the appery facebook plugin.
but when i tried the phonegap one i got this screen:

Image

the following is how my app is setup on the facebook app I thought that when i used Appery the platform was "website".
can you please advice how i should configure the app?
i tried to ass the package name and got a message asking for a Hash key id. how can i generate that?
Image

LuisMa Suárez Gutiérrez
Posts: 0
Joined: Mon Aug 18, 2014 9:12 pm

Facebook Login (not web authentication)

so , right now i am under the impression that i need to
add the Android native option to the facebook app,
-which means i have to create my own has key ,
--to do this i need to download OpenSSL ,
----to do this i need cygwin
-----i also need android studio to generate a keystore
-------- i have to export the appery proyect as a android studio project.
----------- once created the keystore i can run keytool -exportcert -alias -keystore | openssl sha1 -binary | openssl base64.

is this correct? or am i missing something?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Facebook Login (not web authentication)

Hello,

Right, please use website, if you use Appery.io facebook plugin and native - if you use phonegap plugin for that.
What do you mean with hash key?

We are very sorry, but exporting to the Android Studio is something outside the scope (http://devcenter.appery.io/support-po...) of our standard support.

BananaGator
Posts: 0
Joined: Tue Jun 30, 2015 2:53 am

Facebook Login (not web authentication)

You should only need to use the Website setup in Facebook. There is no meed to add the native platforms.

LuisMa Suárez Gutiérrez
Posts: 0
Joined: Mon Aug 18, 2014 9:12 pm

Facebook Login (not web authentication)

hi!
again im trying to do this.
and i got a lot of things working
but i am still under the impresion that i cant use the plug in with registering on facebook dev console as "native" and that measn i have to provide a hash key.
has anyone made this work?

LuisMa Suárez Gutiérrez
Posts: 0
Joined: Mon Aug 18, 2014 9:12 pm

Facebook Login (not web authentication)

I got a very clear response saying i need to create a Native App in facebook .
not a "website"

Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Facebook Login (not web authentication)

Hello, we don't have such example. Probably, this Cordova plugin might to help you: https://github.com/Wizcorp/phonegap-f...

Also, please look at this link how to get a hash key: http://www.markupjavascript.com/2015/...

Sam8264500
Posts: 0
Joined: Tue May 31, 2016 4:23 am

Facebook Login (not web authentication)

Hi Sergiy

I tried the above plugin. But it throws build error with android.

Return to “Issues”