OData 和 Facebook 见解
我对 Facebook 洞察和 OData 都很陌生。总的来说,我对编程很陌生,所以请耐心等待。 (我刚刚了解了 Maven、依赖关系、JDBC 之类的东西)。
我的主要问题是我没有足够的知识 了解文档和示例。,所以...
看看 odata4j,我确实明白一切都是从以下开始的:
ODataConsumer c = ODataConsumer.create(String serviceRootUri) ;
什么是 serviceRootUri 以及如何找到属于的 serviceRootUri 脸书洞察?
我所拥有的是:
- 在 Facebook 上注册的应用程序。我已经可以看到我想要的数据 通过转到见解网页拉取(与 odata4j 一起使用)。我只想 使用 Java 应用程序自动提取数据,该应用程序将存储 信息存入数据库。
- 我已经有该应用程序的 access_token (以及 app_key 和 app_secret)
FB 的 serviceRootUri 应该看起来像这样吗?
https://graph.facebook.com/{app-id-goes-here}/insights?access_token={access-token-goes-here}
I am very new do both Facebook insight and to OData. I am new to programing in general so bear with me.
(I just learned about Maven, dependency, JDBC and stuff).
My major problem is that I don't have enough knowledge to even
understand the docs and examples., so...
Looking at odata4j, I do understand that everything starts with:
ODataConsumer c = ODataConsumer.create(String serviceRootUri) ;
What is the serviceRootUri and how do I find the one that belongs to
Facebook insights?
What I have is:
- registered app with facebook. I already can see the data I want to
pull (using with odata4j) by going to the insights webpage. I just want to
automate the pulling of the data with a Java app that will store the
info into a database. - I already have an access_token for the app (along with app_key
and app_secret)
Should serviceRootUri for FB look smth like this?
https://graph.facebook.com/{app-id-goes-here}/insights?access_token={access-token-goes-here}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
OData.org 列出了目前现实世界中 OData 可用的所有生产者和消费者。 Facebook Insights 是一个生产者,这意味着它为 Facebook Insights 公开了 OData 服务。
查看以下 URL:http://www.odata.org/ Producers
查看该部分:实时 OData 服务。
Facebook Insights OData 服务位于:http://facebook-insights.cloudapp.net/
这就是 OData 服务根 URI。这暴露了我们所说的集合或实体集。每个集合只不过是一行数据,您可以使用它们来构建表格或任何您想要的可视化效果。
OData.org list all the producers and consumers available in the real world for OData as of now. Facebook insights is a producer meaning it exposes a OData service for Facebook Insights.
Have a look at the following URL : http://www.odata.org/producers
Check out the section : Live OData Services.
The Facebook Insights OData Service is avilable at : http://facebook-insights.cloudapp.net/
So thats the OData Service Root URI. That exposes what we call as collections or entitysets. Each collection will be nothing but a rows of data and you can work with them to build a table or whatever visualization you want.
查看 http://developers.facebook.com/docs/reference/api 了解所有内容诸如此类的事情。
Check out http://developers.facebook.com/docs/reference/api for all such matters.