Hey guys,
After reading over and over ive started to implant the process into the game.
I have A few questions though, and probably will have some more later on…
First thing first:
Since the simulator is not supporting facebook actions,
(im getting the error :“Facebook Connect is not supported in the simulator. Please build for device.”)
What is the best way to test it? the xcode simulator? how can I tell the xcode device is logging in to Facebook?
After calling this command: (fbAppID is declared above, and facebookListener function is there also)
[lua] facebook.login( fbAppID, facebookListener, { “publish_stream” } )[/lua]
nothing happens on the Xcode simulator, shouldn’t a web browser pop up or something?
Second:
Like I said I want to post a score to facebook and create a ‘Leaderboard’ so what I did is this:
[lua]
local attachment = {
score = tostring(12345), – a simple fake score for testing
access_token=my_access_token – grabbed from the login process
}
facebook.request(“me/scores” , “POST”, attachment)
[/lua]
Is this looks like a good format? cause like I said I see no respond (I dont know if the initial log in process even succeeded )
Roy.