我可以 post 通过 API 在 Facebook 上发表评论吗?

Can I post reviews on Facebook through an API?

是否可以通过 API 对 FB 页面进行 post 用户评论?

我想在 phone 上安装一个应用程序,让用户在走进我的商店时评论我的业务。

编辑:- 这是我迄今为止尝试过的方法。

我使用 Nodejs 中的护照模块进行身份验证,并能够从 FB 检索访问令牌,包括 manage_pages、publish_pages 和 read_insights。

 app.get('/auth/facebook', passport.authenticate('facebook', { scope : ['email', 'manage_pages','publish_pages','read_insights' ]}));

我的护照策略有这个

    clientID        : configAuth.facebookAuth.clientID, //my app's client id
    clientSecret    : configAuth.facebookAuth.clientSecret, //my app's client secret
    callbackURL     : configAuth.facebookAuth.callbackURL, //the callback URL after authentication
    profileFields: ["emails", "displayName"]

我能够 post 作为使用 NPM FBGraph 模块的页面。

var graph = require('fbgraph');
graph.setAccessToken(req.user.facebook.token);

graph.post("{My page's ID}/feed", "Message test", function(err, res) {
  console.log(res); // { id: xxxxx}
});

这让我可以 post "Message test" 到我页面的 Feed。

虽然我无法通过图表 API 找到对页面 post 评论的引用,但我想知道这是否可能。

https://developers.facebook.com/docs/graph-api/reference/page/ratings#Creating

You can't perform this operation on this endpoint.

意思是,这是不可能的。但是不确定你会用 publish_pages 做什么,因为 ratings/reviews 是由用户而不是页面制作的......如果可能的话,那么只用 publish_actions.