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)

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

报告相同问题?

悬赏问题

  • ¥30 电脑误删了手机的照片怎么恢复?
  • ¥15 (标签-python|关键词-char)
  • ¥15 python+selenium,在新增时弹出了一个输入框
  • ¥15 苹果验机结果的api接口哪里有??单次调用1毛钱及以下。
  • ¥20 学生成绩管理系统设计
  • ¥15 来一个cc穿盾脚本开发者
  • ¥15 CST2023安装报错
  • ¥15 使用diffusionbert生成文字 结果是PAD和UNK怎么办
  • ¥15 有人懂怎么做大模型的客服系统吗?卡住了卡住了
  • ¥20 firefly-rk3399上启动卡住了