通过位置和邻近搜索Facebook事件


Search Facebook events by location and proximity

我正在寻找一个Facebook API来获得按位置和日期过滤的事件,但似乎不存在,相反,我发现这个https://github.com/tobilg/facebook-events-by-location-core似乎做的东西。问题是,我是一个新手,我不能使它的工作在一个php文件。谁能给我一个提示或一个方向,如何实现它在一个php文件和如何检索数据?如果你能回答我的问题,我将不胜感激。谢谢的

已经有人把一些代码库翻译成php了。看看github上的PedroGabriel存储库。我通过一个简单的表单传递参数来测试它(它工作了,至少乍一看像tobilg的原始代码库-我没有彻底测试它)

样本形式:

<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>

您可以在他的存储库中阅读更多关于PedroGabriel的README.md的参数,并在google上搜索facebook access tokens(抱歉不能发布更多链接)