Chính sách mới của fb để bảo vệ dữ liệu người dùng, chắc sau vụ lùm xùm CA.
Xem thêm tại https://developers.facebook.com/blog/post/2018/05/01/facebook-login-updates-further-protect-privacy/
Bạn có thể get user_link để lấy ra profile người dùng thông qua app_scoped_user_id
Đô Nguyễn198
@Đô Nguyễn198
Best posts made by Đô Nguyễn198
-
RE: Id facebook
-
RE: Có cách nào bỏ qua lỗi app crash để tiếp tục chạy không?
Có 2 công cụ phổ biến:
- Forever https://github.com/foreverjs/forever
- Pm2 https://github.com/Unitech/pm2 (recommended)
Tuy nhiên bạn nên validation trước dữ liệu người dùng, hạn chế tối đa crash.
Latest posts made by Đô Nguyễn198
-
RE: Pm2 event catch
Bạn dùng code này trên 1 con monitor khác, khi có bất cứ pid nào restart là tự động send mail về.:
pm2.connect(function() {
pm2.launchBus(function(err, bus) {
bus.on('process:event', function(data) {
if (data.event === "exit") {
sendMail(body);
}
});
});
}); -
RE: Có cách nào bỏ qua lỗi app crash để tiếp tục chạy không?
Có 2 công cụ phổ biến:
- Forever https://github.com/foreverjs/forever
- Pm2 https://github.com/Unitech/pm2 (recommended)
Tuy nhiên bạn nên validation trước dữ liệu người dùng, hạn chế tối đa crash.
-
RE: [Hà Nội]. Xin thực tập Nodejs
Em muốn xin thực tập nodejs tại HN, có a/c nào nhận k ạ
reply
Cho xin ít profile đi bạn. -
RE: RangeError: Maximum call stack size exceeded
Bạn thử console.log(user.messages) lên xem result như thế nào? Lưu như thế này mà user nào chat nhiều thì chắc chuỗi json dài bất tận quá.
-
RE: Id facebook
Chính sách mới của fb để bảo vệ dữ liệu người dùng, chắc sau vụ lùm xùm CA.
Xem thêm tại https://developers.facebook.com/blog/post/2018/05/01/facebook-login-updates-further-protect-privacy/
Bạn có thể get user_link để lấy ra profile người dùng thông qua app_scoped_user_id -
RE: Không tồn tại /socket.io/socket.io.js
Do bạn rewrite url trên nginx về https. Edit this.
Cách thứ 2 đơn giản hơn, bạn set static:
app.use('/socket', express.static(__dirname + '/node_modules/socket.io-client'));
Trên client khai báo:
<script src="/socket/dist/socket.io.js"></script>
Là xong.