Meteor 使用本地连接导致错误:insert failed: 404 -- Method not found [英] Meteor using a local connection results in error: insert failed: 404 -- Method not found

查看:30
本文介绍了Meteor 使用本地连接导致错误:insert failed: 404 -- Method not found的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在客户端有一个流星集合

Friends = new Meteor.Collection("Friends");Meteor.subscribe("朋友");

我有一个用户通过 facebook 进行身份验证,我想获取他们的朋友列表:

FB.api("/me/friends?auth_token="+response.authResponse.accessToken,功能(响应){for (i = 0; i

我有一个函数来获取该列表:

Template.Friends.all_friends = function(){返回 Friends.find();}

我有一个模板,想在屏幕上显示所有朋友: