javascript - facebook app request: Uncaught TypeError: Cannot read property 'frictionless_value' of undefined -
I have a very simple code in javascript / jquery so that the user gets permission to send Facebook app request to other friends Could. It works fine if the user sends any requests but fails maliciously if the user closes the window without sending anything. The error message has been posted in the title it did not happen before . The relevant part of the code is: No warning ever happens, so I believe that the way I am dealing with undefined response. Any ideas? PS: If the replacement of the condition for Debug code using firebug to add a break point. View variable content to confirm entering each row and working from there.
FB.ui ({method: 'apprequests', message: Msg, title: title, data: from_data}, function (feedback } {If (feedback and response .request_ids) {$ .post ("games", {action: "sentRequests", requestIds: JSON.stringify (Response.request_ids)}, function () {// Store app requests in server .});} Other {alerts ("requests are canceled");}});
(reaction! == undefined) does not work either.
Comments
Post a Comment