Hello!
First, just want to say thanks to the devs at Corona Labs for creating a fantastic framework. Most of my app development has gone pretty smoothly, until i tried to incorporate facebook :(.
Here is my issue
When my game ends, a user is presented with an overlay. They can tap a button that says “Share Score” which should ask them to login to facebook, and afterwards i would post their score to their feed. The problem lies in the facebook.login(…) part.
I have verified that the plugin is included in the build.settings using corona’s documentation. It looks like this:
plugins = { ["facebook"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, },
The iOS specific part of the build.settings looks like this:
iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay FacebookAppID = "HIDDEN\_APP\_ID", --replace XXXXXXXXXX with your Facebook App ID --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend --[[-- iOS app URL schemes: --]] CFBundleURLTypes = { { CFBundleURLSchemes = { "fbHIDDEN\_APP\_ID", "coronasdkapp", } } } } },
In the scene that handles the overlay, I included the facebook library and the json library. I then call facebook.login(“APP_ID”, eventListener, “PERMISSIONS”) when they tap on a button. However nothing happens when i do this. I added print statements before the facebook.login call and after it. I can see those messages print in the xcode organizer’s console (im testing this on my iPhone 5), so i know its actually executing, but nothing happens.
I’ve been stuck on this for about 2 or 3 hours now :/. Looked over the documentation again and again. Hope to hear from someone soon. Thanks!!