Google地图- Facebook使用JSON放置假位置


Google maps - Facebook Places fake location using JSON

我正在做一些关于基于位置的社交网络的研究,我试图看看我是否可以通过修改谷歌返回给Firefox浏览器的JSON来伪造位置。

首先,我在firefox浏览器中输入about:config,并设置了所有配置设置,并将geo.wifi.uri的参数更改为返回JSON位置的页面。

 <?php 
 header('Content-type: application/json');
 $longitude = "-73.98626";
 $latitude = "40.75659";
 $accuracy = "10";
 $geoArray = array( 'location'=>array(
         'latitude'=>$latitude,
         'longitude'=>$longitude,
         'accuracy'=>$accuracy ) ) ;
 $geoJson = json_encode( $geoArray ) ;
 echo $geoJson ;
 ?>

它有一个阶段,我可以选择一个地方,检查按钮出现,但当我按下它,它只是说加载。

我正在使用firefox用户代理iphone 3.0设置来获取签入选项

你伪造的位置工作在这样的东西:http://html5demos.com/geo ?在JSON中缺少预期响应中的access_token字段:尝试添加它。你可能还想添加一个address字段。这是你需要的结构:

    {"location":
        {"latitude": 40.75659,
         "longitude": -73.98626,
         "address":{"country":"United States","country_code":"US","region":"<statename>",
    "city":"<city name>","street":"<street name>","street_number":"<number>","postal_code":"<zip>"},"accuracy":10.0},
"access_token":"<honestly not sure what this is or how it is interpreted>"}