我正在研究一个流星项目,该项目需要使用facebook graph API执行常见操作(例如获取user_birthday,朋友列表,点赞,帖子评论以及将标题/图片发布到墙上等)。 我按照堆栈溢出问题的答案中给出的步骤进行操作: How to perform common FB actions using Meteor? 但这给了我控制台错误,如下所示:
Errors prevented startup:
While building for os.osx.x86_64:
server/main.js:58:10: /Users/pooja/Desktop/facebookgraph/server/main.js:
Unexpected token, expected "," (58:10)
56 | return
onComplete(err, result);
57 | }
> 58 |
Future.wait(future);
| ^
59 | console.log(graph,
Meteor.user().services.facebook.accessToken,
Meteor.user().services.facebook.id)
60 | }else{
61 | return
false;
=> Your application has errors. Waiting for file change.
先谢谢了。任何其他实现常用操作的方法将不胜感激。