在这一点上,我很遗憾:我怎么能这样做?我可以使用fetch API吗?我是否需要在我的应用程序中添加一些节点插件(我正在寻找:https://github.com/Thuzi/facebook-node-sdk)?
解决方法 你可以使用fetch API发出这样的请求,其中查询可以像 https://graph.facebook.com/me?access_token=token_you_got那样fetch('https://graph.facebook.com/me?access_token=token_you_got') .then(response => response.Json()) .then(Json => this._handleResponse(Json.response)) .catch(error => this.setState({ isLoading: false,message: 'Something bad happened ' + error }));
更多信息:http://www.raywenderlich.com/99473/introducing-react-native-building-apps-javascript
总结以上是内存溢出为你收集整理的ios – React-native app和Facebook SDK全部内容,希望文章能够帮你解决ios – React-native app和Facebook SDK所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)