error in facebook graph - org.json.JSONException: No value for name

前端 未结 1 703
南方客
南方客 2021-01-27 22:18

What is the error in this code?

I would like to add a facebook page name and get its json data, but there is something error I cannot discover. this example of url i us

1条回答
  •  野性不改
    2021-01-27 22:53

    Try to read the exception that you get. Here the LogCat says JSONException: No value for name. You are indeed getting an object in return and your AsyncTask seems fine. If you check similar questions like JSONException: no value for data , it suggests you to change HttpPost to HttpGet.

    0 讨论(0)
提交回复
热议问题