Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Facebook apprequests how to get the return .to and .request?

$
0
0

Using Titanium on iOS

Ok so I used FB.ui() to get an apprequest in my old app that ran on a webserver. Now I'm adding all the functionallity to my iOS app. I'm using the Titanium Facebook library and using the dialog('apprequests',{}); The dialog is working great and I can send invites to friends. My problem is when I try to retrieve the return value of .to and .request from the dialog call. I seen that it actually had the information I needed the request ID and the users ID .to who got invited.

Here's what I use to do on the webserver

var requestID = response.request;
 
//console.log(response);
var arrayString = "";
for (var i = 0; i < response.to.length; i++)
{
arrayString += "&toArray[]="+response.to[i];
}
response is the name of the return from the dialog call.

I'm doing something else with the result just using this as an example, I'm just wondering how to get acces to .to and request I can do an alert(JSON.stringify(response)); and see the values I need but when I try to access them, it gives me errors or a null.

Thanks


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>