donglang9880 2016-09-22 16:05
浏览 50
已采纳

按位置和邻近度搜索Facebook活动

I'm looking for a Facebook API to get events filtered by location and date, but seems that do not exist, instead, I found this https://github.com/tobilg/facebook-events-by-location-core that seems do the stuff. The problem is that I'm a newbie and I can't make it working on a php file. Can anyone give me a hint or a direction to how implement it on a php file and how retrieve the data? An answer for dummies will be apreciated. Thank's

  • 写回答

1条回答 默认 最新

  • dongsu7049 2017-01-13 16:07
    关注

    Someone has already translated some of that codebase to php. Take a look at PedroGabriel's repository on github. I tested it by passing the parameters through a simple form (and it worked, like tobilg's original codebase at least at first glance - I haven't tested it thoroughly)

    sample form:

    <form action="index.php" method="get">
        latitude :  <input type="text"  name="lat" value="42.844018">  
        longitude: <input type="text"  name="lng" value="-106.317175">  
        distance: <input type="text"  name="distance" value="50"> 
        access_token: <input type="text"  name="access_token" value="EAACEdEos...etc">  
        <input type="submit" value="submit">
    </form>
    

    You can read more about the parameters in PedroGabriel's README.md in his repository and do a search on google for facebook access tokens(sorry can't post more links)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 spring后端vue前端
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题