facebook login Corona

Hola,

Estoy intentado compartir en facebook los resultados del juego. He creado un botón que al pulsarlo te loguea y al probarlo me sale el mensaje de error que podéis ver en la imagen.

Este es mi build.settings y nose que más probar porque si intento hacer el build cambiando el publisherId = “com.coronalabs” a publisherId = “com.facebook.LoginActivity” ni siquiera me deja hacer el build porque me da un error.

Por favor, ncesito ayuda

settings =

{

        – Configuracion Google Play con Corona SDK

        plugins =

        {

             [“CoronaProvider.gameNetwork.google”] =

                {

                    publisherId = “com.coronalabs”,

                    supportedPlatforms = { android=true }

                },

             [“facebook”] =

                {

                    publisherId = “com.coronalabs”

                },

        },

        orientation =

        {

                default = “portrait”,

                supported =

                {

                        “portrait”

                },

        },

        android =

        {       

                – Especificar ID de la aplicación 

                googlePlayGamesAppId = “159279571213”,

                versionCode = “14”,

                – versionCode = “14”, Esta es la version anterior si subimos nueva debe ser mayor

                facebookAppId = “902543416507297”,

                usesPermissions =

                {

                        “android.permission.INTERNET”,

                        “android.permission.WRITE_EXTERNAL_STORAGE”,

                        “android.permission.VIBRATE”

                },

        },

}

Can you try again? We have tweaked something on our servers that should fix this. It may take a few minutes to propagate through all of the servers.

Posts to main forum topics should be in English. We have a forum specific for Spanish speakers where you can ask questions in Spanish.

Thanks

Rob

Hello thank you very much.

I test well with com.coronalabs ? or I have to change something in build.settings?

Best regatas!

Your build.settings looks fine.

Are you still getting the error?

Rob

Hi i´m Tania_gh2000 from other account . i cant access to my account i dont understand.

The first time I’ve tried has worked perfectly but the second has left me this error message :

"Invalid key hash. The key hash icbj8sAOK4GRJ2jHI3En5zdH2Ss= does not match any stored key hashes. Configure your app key hashes at http://developers.facebook.com/apps/902543416507297 "

I had already generated my key hash why ask me that now?my key hash is diferent.

Can you help me?

Thank you very much .

Regards

tania [10:57 AM] the first time I’ve tried has worked perfectly but the second test has left me this error message I sent in the image.
I had already generated my key hash why ask me that now? you can help me thank you very much .

the first time I’ve tried has worked perfectly but the second time I see this error :

"Invalid hash key . The key hash xxxxxxxxxxxxxxxxxxx = " does not match

any stored key hashes. Configured your app key hashes at

http://developer.facebook.com/app/902xxxxxxxxx

I have already generated a hash key and is not the same

can you help me?

Thanks, regards

Tania.

Please read: https://docs.coronalabs.com/guide/social/setupFacebook/index.html#android

under Key Hashes.

Basically Facebook tells you what it’s expecting. Take what they put in the console log, make any changes per the document above and add that new string to your FB developer portal, removing any other keyhashes.

Rob

I’m worried … sorry .

I copied the hash key that appears in the error message and have put in the box hash key settings facebook developers .
I have also enabled a single sign-on and deep link and native application. package name as I have in the crown and the name of the class com.ansca.corona.CoronaActivity
but I still  the same error message . (
Please help me!

Did you change the two special characters that need changed as documented in the link I provided?  Can you provide a screen shot from your developer platform and the exact message in your console log?

Rob

Yes ofcourse, i dont know the mistake. 

here you can see the pics .

Thanks

Best regards,

Tania.

do I have to change ?

You need to use the “adb logcat” command with your device tethered to your PC and look for the error there. It will tell you what you need to provide for the hash key. If you don’t have the android developer tools installed, then read the guide below

http://docs.coronalabs.com/guide/basics/debugging/index.html

I need to see the error message in the console log.

Rob

Hi Rob,

 

I have already installed the tools to use adb logcat. 

 

The problem is that I find the hash key . What I can do? I`m blocked.

 

Thanks for your help.

Tania.

 

There should be text in the console log from Facebook that tells you that the hash key is bad. It should also tell you what it should be.  I need to see that text.

Rob

Hi Rob!

I downloaded and installed the android tools. I connected my mobile phone to my computer and i have started the console using the command adb logcat.

The result i have saved in the text file called “ErrorClave.txt”.

I can not find the error message with the hash key.

I attached the results so you can  help me.

Thanks!!

Tania.

I attached the results so you can help me.

.I downloaded and installed the android tools . I connected my mobile phone to your computer and have started the console using the adb logcat command. The result I have saved in the text file called " ErrorClave.txt " . I can not find the error message with the hash key .
I downloaded and installed the android tools . I connected my mobile phone to your computer and have started the console using the adb logcat command. The result I have saved in the text file called " ErrorClave.txt " . I can not find the error message with the hash key .

I downloaded and installed the android tools . I connected my mobile phone to your computer and have started the console using the adb logcat command. The result I have saved in the text file called " ErrorClave.txt " . I can not find the error message with the hash key .

I downloaded and installed the android tools . I connected my mobile phone to your computer and have started the console using the adb logcat command. The result I have saved in the text file called " ErrorClave.txt " . I can not find the error message with the hash key .

I downloaded and installed the android tools . I connected my mobile phone to your computer and have started the console using the adb logcat command. The result I have saved in the text file called " ErrorClave.txt " . I can not find the error message with the hash key .

The text file wasn’t helpful. For future reference it would be helpful to stop all other apps. There is a bunch of messages from whatsapp and an audio player that makes it hard to find messages. Also are you running on BlueStacks or an actual device?

Lets try this a different way. Are you building on Windows or a Mac?

Can you post a screen shot of the build screen just before you hit the button to start the build (please do not blur out any fields).

Thanks

Rob

Hi!

 

I build on Windows. Yesterday I was examining the text document called "ErrorClave.txt " and filter the results facebook . I found the message saying the hash key was the same as that came in the screenshoot of the error message facebook , I have copied the settings of facebook developers and seems that already works .

 

 

How I can make a screenshot and upload it to the same capture on facebook? make screenshot and saved in pictures on mobile but my problem is not how to tell the name of the file I want to publish. this is the code:

 

 

Thanks Rob

 

Best regards,

Tania.

I really could use to see a screen shot of your build screen where it shows me the Keystore and Alias information.  I’m going to have you break down each step of creating a key hash and see where the error is happening. The keyhash you have is invalid and we need to create one. Since we can’t find where Facebook is supposed to tell you what to use, we have to do this. Once I have that screen shot, hopefully I can give you the exact commands needed to determine the problem.

Just to help you understand the process. The command in our guide is actually like three commands that are chained together. That is the output from the first command becomes the input to the second command. The output from the second becomes the input to the 3rd.

If there are any errors along the way (file not found, invalid password, etc.), you will get a keyhash output by the last step, but it won’t be based on the keystore you’re using. I’m going to have you execute the commands one at a time looking to see what the output is and where the problem is occurring, but I can’t give you exact commands until I know where your keystore is and what alias you’re using.

Rob

Hello Rob,

Thank you very much for your attention.

Ok this is the build screen, I hope you can help me.

I feel like I’m giving you the run around. But I need to learn more.  Can you send a screenshot of your Facebook Developer Portal where you’ve entered the keyhash?

Also, can you try our newer facebook plugin:  Change build.settings to use:

["plugin.facebook.v4"] = {     publisherId = "com.coronalabs" },

and see if we get improved messaging in the console log. I would need you to re-capture the console log. Please turn off the music player and whatsapp before you capture the run. This will get a bulk of the messages out of the log run.

Thanks

Rob

Hi!

Here I send screenshots you asked.

I have already changed build.settings with the new facebook plugin that you  has recommended me .

When starting the app , press the button to post on facebook and works perfectly the first time but the second does nothing and not get an error message.

I hope we finally get to fix it .

Thank you very much.

Best regards.

Tania.