I am trying to get the place of Instagram pictures from my account. The API is giving me all kinds of information about my account and pictures, but when I try to get the position of my pictures it says:
Non-object assets Trying to get .. ..
My code looks like this:
The first "echo" gives me all the images from my account. The second "echo" wants to give me the longitude of all the images on my account. Instead it gives me the error message, does anyone know how to fix it?
This means that $ data-> Location
is not an object.
You should check your object structure with var_dump ($ data)
and verify that you expect it on that layout.
No comments:
Post a Comment