Going through our final tests, we discovered that a) you have updated to Facebook SDK 3.1.1 and b) it breaks a lot of stuff.
First of all, the Cancel button in the Dialog is supposed to return the same as the Close button in the Dialog. Now it returns success and true and whatnot:
-- To print the facebook response
for k, v in pairs(event) do
print(k)
print(envy)
end
HITTING THE CANCEL BUTTON:
2012-12-30 13:04:21.680 mindfeud[20930:c07] string :: type
2012-12-30 13:04:21.680 mindfeud[20930:c07] string :: dialog
2012-12-30 13:04:21.681 mindfeud[20930:c07] string :: name
2012-12-30 13:04:21.681 mindfeud[20930:c07] string :: fbconnect
2012-12-30 13:04:21.682 mindfeud[20930:c07] string :: didComplete
2012-12-30 13:04:21.682 mindfeud[20930:c07] boolean :: true
2012-12-30 13:04:21.683 mindfeud[20930:c07] string :: isError
2012-12-30 13:04:21.683 mindfeud[20930:c07] boolean ::
2012-12-30 13:04:21.683 mindfeud[20930:c07] string :: response
2012-12-30 13:04:21.684 mindfeud[20930:c07] string :: fbconnect://success
HITTING THE CLOSE CROSS BUTTON:
2012-12-30 13:05:24.231 mindfeud[20930:c07] string :: type
2012-12-30 13:05:24.231 mindfeud[20930:c07] string :: dialog
2012-12-30 13:05:24.232 mindfeud[20930:c07] string :: name
2012-12-30 13:05:24.232 mindfeud[20930:c07] string :: fbconnect
2012-12-30 13:05:24.232 mindfeud[20930:c07] string :: didComplete
2012-12-30 13:05:24.233 mindfeud[20930:c07] boolean ::
2012-12-30 13:05:24.233 mindfeud[20930:c07] string :: isError
2012-12-30 13:05:24.233 mindfeud[20930:c07] boolean ::
2012-12-30 13:05:24.234 mindfeud[20930:c07] string :: response
2012-12-30 13:05:24.234 mindfeud[20930:c07] string ::
Next out, the facebook session does not seem to survive for more than a few seconds. Maybe it is not being stored at all. After you updated to 3.1.1, authorization must be done every time we open a Dialog, and it must be done 2 times - first time it fails, second time it works. Then, as soon as the dialog is closed in one or another way, and we want to re-open the dialog, then the pattern repeats itself. We’re asking publish_actions for everything in the app from login to getting friends lists to apprequests and wall posts, so it’s not related to the permissions. Either way, this _worked_ before you updated the SDK.
[import]uid: 21746 topic_id: 34416 reply_id: 334416[/import]