facebook.login() is not working in Corona SDK -


I have thrown all the steps, making a major hash for Android to build my game in Corona. I have created a button for user login Facebook account. But when the user touches the button, he does not have any error messages and feedback, only the print output is.

What am I missing? help please.

  • I have created key things using OpenSSL
  • Enter app ID from Facebook developers
  • Enter key laughs for Facebook developers < / Li>
  • Enable "Single Sign On" and "Deep Linking"
  • Enter the class name "com.ansca.corona.CoronaActivity" on Facebook developers
  • Include "android.permission local" onlt.settings

      requires local facebook = ("Facebook") local fbAppID = "49911xxxxxx" onClick on local F Facebook.login (fbAppID, facebookListener, {"publish_actions, email"}) End end - Facebook Button FacebookButton ("End" == event.phase) Then print ("Button was pressed and released") FacebookButton = widget.newButton {defaultFile = "images / fb.png", width = 240, height = 120, onEvent = onClick,} FacebookButton.x = display.contentWidth / 2 FacebookButton.y = display.contentHeight / 2    

    I am sure if you have fixed this problem but I am also having problems with this When you log in through Facebook and you say this one Returns the error:

    "Invalid key hash code, it does not match xxxxxxxxxxxxx (this is in your website)" I have copied the hash code and checked it more often .. .

    Only in the end it can be realized that the lowercase "L" is actually an uppercase "I" O0. Good luck again! Also, here is a small snippet that helped me a little

      local function facebookListener (event) if (event.type == "session") then if (event.phase == " Login ") then sessionToken = event.token local response = event.response native.showAlert (" my response ", response) --facebook.request (" me "," received ", {fields =" email "}) Event.response native.showAlert ("my response", response) end-end facebook.login (appId, facebookListener, {"publish_actions, email, public_profile"}).    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -