- Home /
Parsing apprequests
Hi guys, I'm using prime31 plugin to get an apprequest from facebook. I can grab the object as a whole, but when I try and parse it, I'm hitting horrific issues. Here is the object:
{
"data": [
{
"id": "213751342116104_708647025",
"application":
{
"name": "xxxxx xxxxx",
"id": "xxxxxxxxxx"
},
"to":
{
"name": "Anthony Lewis",
"id": "xxxxxx"
},
"from":
{
"name": "xxxx xxxxx",
"id": "xxxxxxxx"
},
"data": "extraLife",
"message": "test message",
"created_time": "2013-08-09T12:12:45+0000"
},
{
"id": "283880861754065_708647025",
"application":
{
"name": "xxxxx xxxxx",
"id": "xxxxxxxxx"
},
"to":
{
"name": "Anthony Lewis",
"id": "xxxxxxxx"
},
"from":
{
"name": "xxxx xxxxx",
"id": "xxxxxxxxxx"
},
"data": "extraLife",
"message": "test message",
"created_time": "2013-08-08T12:49:34+0000"
}],
"paging":
{
Although the FB says it returns an array of objects, I seem to get "NullReferenceException: A null value was found where an object instance was required."
If I cast it as a dictionary and loop through the keys, it returns data and paging but I can't seem to get further than that.
Can anyone help me out as to how to parse this?
Thanks
Your answer
![](https://koobas.hobune.stream/wayback/20220613111840im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Facbook Authentication token 0 Answers
Unity Facebook apprequest notifcation opens browser instead of play store 0 Answers
Unity+FB Graph API- Get friends requests 1 Answer
prime31 facebook android login question 0 Answers
Using Facebook API with android, says login is cancelled by Player. 6 Answers