使用facebook搜索api获取位置或坐标指定的帖子 [英] Fetch location or coordinates specfic posts using facebook search api

查看:133
本文介绍了使用facebook搜索api获取位置或坐标指定的帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用Facebook搜索api( https://graph.facebook.com/search/?q=KEYWORD&type=post ...)获取位置/协调特定的公开帖子)?我希望这是一个普通的搜索查询,没有任何用户授权。



我尝试使用 https://graph.facebook.com/search ?type = location& center = 37.76,-122.427& distance = 1000& access_token = ... ,但是这需要access_token并返回只访问用户的朋友的对象(而不是帖子)令牌用于查询。



我还尝试了 https://graph.facebook.com/search?q=samsung&type=post& center = 12.9833,77.5833& distance = 1000&access_token = [I-USED-ANY-ACCESS-TOKEN] ,但我不认为这是给我具体位置的结果,因为我没有收到任何在json响应中的loc信息。



有没有任何免费的数据源/ API可以提供我 location / coordinate / ip 来自网络/社交网站的具体帖子/数据/推文/ Feed等。

解决方案

可以走FB图获得这些地方和他们的协调对于事件位置签入之类的类型。例如:



搜索(链接):

  https://developers.facebook。 com / tools / explorer?method = GET& path = search%3Fq%3Dconference%26type%3Devent 

然后选择一个结果并执行(链接):

  https://developers.facebook.com/tools/explorer?method=GET&path=463944956965055 

然后查找会场ID的坐标(链接):

  https://开发人员。对我有用[0] https://developers.facebook.com/do cs / reference / fql / event /rel =nofollow> FQL表定义来验证是否提供位置坐标。


Is there are way to fetch location/coordinate specific public posts using the facebook search api (https://graph.facebook.com/search/?q=KEYWORD&type=post ...)? I want this to be a general search query, without any user authorization.

I tried using https://graph.facebook.com/search?type=location&center=37.76,-122.427&distance=1000&access_token=... , but this requires access_token and returns objects(not posts) posted only by friends of the user whose access token is used for querying.

I also tried https://graph.facebook.com/search?q=samsung&type=post&center=12.9833,77.5833&distance=1000&access_token=[I-USED-ANY-ACCESS-TOKEN], but I dont think this is giving me the location specific results as I am not receiving any loc info in the json response.

Are there any free data sources/APIs that can provide me location/coordinate/ip specific posts/data/tweets/feeds, etc from the web / social networking websites?

解决方案

It is possible to walk the FB graph to get such places and their coordinates for types like event, place, checkin. For example:

Search (link):

https://developers.facebook.com/tools/explorer?method=GET&path=search%3Fq%3Dconference%26type%3Devent

Then pick one of the results and do (link):

https://developers.facebook.com/tools/explorer?method=GET&path=463944956965055

Then lookup the venue id's coordinates (link):

https://developers.facebook.com/tools/explorer?method=GET&path=199344279273

Check the FQL table definitions to verify that location coordinates are provided.

这篇关于使用facebook搜索api获取位置或坐标指定的帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆