How to get geolocation of facebook status using facebook graph API -


so i'm trying latitude , longitude of facebook statuses map them, can give me idea on how that.

thanks ...

firs make api call - /me/statuses status of user.
permission required: user_status
demo

you'll response as-

{    "data":[      {        "id": "10152044171758611",         "updated_time": "2014-02-15t12:12:59+0000"      },       {         "place": {             "id": "xxxxxxxxxxxxx",              "name": "xxxxxxx",              "location": {                "city": "xxxxxxx",                 "country": "xxxxxx",                 "latitude": 28.573024614741,                 "longitude": 77.230443565217,                 "street": "xxxxxxxxxx",                 "zip": "xxxxxxxx"              }         },          "id": "xxxxxxxxx",          "updated_time": "2014-02-10t18:13:36+0000"      },       ...    ] } 

check if element has place field, means status has place it. fetch place details. that's it!


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -