Hello,
I am trying to make it so that people can challenge their friends with my app. Right now I can see my friends and I can select those I want to send the request to, but once I click send nothing happens.
There is no error on the ADB Logcat, in fact it says fbconnect: success
How can I get this to work?
I’m using the latest daily build 2013.1208
Here are my build settings:
iphone = { plist = { CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png" , "Icon@2x.png" , "Icon-72.png" , }, UIApplicationExitsOnSuspend = false, --UPDATE FB APP ID FacebookAppID = "###################", --I have my actual key here CFBundleURLTypes = { { CFBundleURLSchemes = { "fb###################", -and here } } } }, },
android = { usesPermissions = { -- This permission is required in order for analytics to be sent to Flurry's servers. "android.permission.INTERNET", -- These permissions are optional. -- If set, then Flurry will also record current location via GPS and/or WiFi. -- If not set, then Flurry can only record which country the app was used in. "android.permission.ACCESS\_FINE\_LOCATION", -- Fetches location via GPS. "android.permission.ACCESS\_COARSE\_LOCATION", -- Fetches location via WiFi or cellular service. }, }
--my global space local M = {} --Add Facebook Library local facebook = require( "facebook" ) local function listener( event ) print("I'm in the FB Listener Function") print("My Event type is: "..event.type) if ( "session" == event.type ) then if ( "login" == event.phase ) then --facebook.request( "me" ) --Challenge Message facebook.showDialog( "apprequests", { message="Download this game and try to beat me!" } ) end elseif ( "dialog" == event.type ) then local response = event.response print( response ) end end local FBLogin = function(appID) M.appId=appID facebook.login( M.appId, listener ) end -- assign a reference to the above local function M.FBLogin = FBLogin return M
--Here is how I'm calling the FB function --Require FB local facebook = require( "myFacebook" ) facebook.FBLogin("#################") --My Actual ID Here