Problem with facebook sample code in corona sdk

the sample code from corona doesn’t work on device .It ask for login once you enter username and password and then it takes back to the home screen with a message on login button to login cancelled 

Its for integrating facebook in Corona sdk for Android device 

Hello,

Which specific sample code are you referring to?

Thanks,

Brent

the files installed in Corona folder , Sample code in corona simulator

coronasdk ->sample code–> networking – > Facebook 

You can’t just build and run the Facebook sample app. You have to log into the Facebook Developer portal, create your own App ID setup and then bring that App ID back to your Corona Project and make changes to the build.settings and main.lua where that ID is needed.  You have to make the bundle ID and any signing values match in your Corona build and the Developer portal.

Then you need to use “adb logcat” to look at the console log and see if you’re getting any errors.  See these guides:

https://docs.coronalabs.com/guide/social/setupFacebook/index.html

https://docs.coronalabs.com/guide/social/implementFacebook/index.html

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

Rob

Hi Rob, 

I have included the plugin for android as well as the facebook setup with app id and Hash key but my problem is with the device login . It takes you to the login page of Facebook and after entering username and password it doesnt display the facebook page it takes back to the login page saying login cancelled 

What’s going on in your console log? Tether your device to your computer using it’s USB cord and use the “adb logcat” command from the command line and look for errors from Corona or Facebook.

Its for integrating facebook in Corona sdk for Android device 

Hello,

Which specific sample code are you referring to?

Thanks,

Brent

the files installed in Corona folder , Sample code in corona simulator

coronasdk ->sample code–> networking – > Facebook 

You can’t just build and run the Facebook sample app. You have to log into the Facebook Developer portal, create your own App ID setup and then bring that App ID back to your Corona Project and make changes to the build.settings and main.lua where that ID is needed.  You have to make the bundle ID and any signing values match in your Corona build and the Developer portal.

Then you need to use “adb logcat” to look at the console log and see if you’re getting any errors.  See these guides:

https://docs.coronalabs.com/guide/social/setupFacebook/index.html

https://docs.coronalabs.com/guide/social/implementFacebook/index.html

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

Rob

Hi Rob, 

I have included the plugin for android as well as the facebook setup with app id and Hash key but my problem is with the device login . It takes you to the login page of Facebook and after entering username and password it doesnt display the facebook page it takes back to the login page saying login cancelled 

What’s going on in your console log? Tether your device to your computer using it’s USB cord and use the “adb logcat” command from the command line and look for errors from Corona or Facebook.