我不是某个页面的所有者,但我想访问页面评论和评级,每次访问时间我都得到空数据集
> http="https://graph.facebook.com/102227700571/tabs/reviews?access_token=fb_oauth"
> content=callAPIInfo(http,fb_oauth)
> content
$data
list()
Run Code Online (Sandbox Code Playgroud)
我看到一些类似的1 2问题,但没有得到我的答案,我不想从每个页面的管理员收集页面访问令牌,是否有可能获取评论和rating.thanks.
编辑
最后,我找到了ifaour对admin访问页面令牌的非常详细的答案,以及获取页面访问令牌的必要性,所以这里是如何获取页面访问令牌和审查和评级
你想要的连接(例如:PAGE_ID/events)
access_token="xxx" #[what u find above]
> content=callAPIInfo(http,access_token)
> content
$data
$data[[1]]
$data[[1]]$created_time
[1] "2014-04-13T11:37:26+0000"
$data[[1]]$reviewer
$data[[1]]$reviewer$name
[1] "abc"
$data[[1]]$reviewer$id
[1] "100000579606903"
$data[[1]]$rating
[1] 4
$data[[1]]$review_text
[1] "Enjoy having coffee here...:)"
Run Code Online (Sandbox Code Playgroud)创建密钥空间并使用 CQL 但收到错误
CREATE KEYSPACE demodb
WITH strategy_class = 'org.apache.cassandra.locator.SimpleStrategy'
... AND strategy_options:replication_factor='1';
cqlsh:demodb> CREATE TABLE users (
... user_name varchar,
... password varchar,
... gender varchar,
... session_token varchar,
... state varchar,
... birth_year bigint,
... PRIMARY KEY (user_name)
... );
Bad Request: line 1:163 mismatched input ')' expecting EOF
Run Code Online (Sandbox Code Playgroud)
为什么我收到这个错误,任何帮助,谢谢。
我在字符向量中有文本,但我无法在字符向量中找到单词的索引,如何在不经过每个单词的情况下有效地提取它,并使用nchar和match添加每个单词的长度.
which("ashish"=="i am ashish and ashish is good")
integer(0)
grep("apple","i am ashish and ashish is good")
integer(0)
grep("apple","It is a apple and apple is tasty")
[1] 1
Run Code Online (Sandbox Code Playgroud)
我希望文本中的"apple"的索引是9,19.更好的方法的任何建议,谢谢.