The Facebook Platform Development
Khi Facebook lần đầu tiên tung ra, nó là một ứng dụng web tương đối đơn giản để chia sẻ thông tin. Các trang web đã được dành cho sinh viên đại học, và trong những năm đầu tiên của sự tồn tại của nó, bạn phải có một địa chỉ email kết thúc bằng "edu" để tạo một tài khoản Facebook. Như các dịch vụ bắt đầu phát triển, các kỹ sư của Facebook đã bắt đầu nghĩ về những cách mà họ có thể cho phép các nhà phát triển bên ngoài tổ chức để sử dụng nền tảng của họ để giúp thu hút nhiều người dùng hơn. Facebook API đầu tiên những gì ra khỏi dự án này là ai. Vào thời điểm đó, người sử dụng Facebook đánh số khoảng 22 triệu USD, và các kỹ sư cần thiết để phát triển một hệ thống cho phép các nhà phát triển truy cập vào phần thông tin người dùng của họ ", cô lập các vấn đề bảo mật máy chủ, không ra lệnh một quy trình làm việc cho các nhà phát triển, và chưa tích hợp tất cả các mã vào hiện tại Facebook look-and-feel. Những gì các kỹ sư thiết kế là sự kết hợp khá khéo léo của công nghệ cho phép họ để tách các giao diện người dùng trực tuyến của Facebook từ mã của bạn. Vào thời điểm đó, Facebook đã được chào hàng như là một nền tảng, nơi có một superset của HTML (FBML) mà bạn có thể sử dụng trên các trang của bạn để hiển thị nội dung, một API REST để lấy thông tin về người dùng cho ứng dụng của bạn, một ngôn ngữ SQL-style để giúp bạn lọc thông tin, một thư viện JavaScript để cung cấp cho bạn truy cập vào Facebook "hành động", và một tập hợp các ngôn ngữ lập trình. Cách Facebook giải quyết vấn đề không phục vụ mã của tất cả mọi người là bằng cách thiết lập một proxy trên máy chủ của họ rằng sẽ vượt qua các yêu cầu và quan điểm của ứng dụng của bạn qua lại giữa các người dùng của bạn. Mỗi khi người dùng Facebook tương tác với các ứng dụng của bạn, yêu cầu của họ đã được thông qua máy chủ của bạn (xem hình 8-1). Từ máy chủ của bạn, sau đó bạn sẽ yêu cầu thông tin thông qua các API REST từ máy chủ của Facebook, và với đối tượng phản ứng, bạn xây dựng mẫu FBML của bạn để gửi lại cho Facebook. Các máy chủ của Facebook sẽ xử lý FBML trên trang và chuyển đổi nó sang HTML để cung cấp cho người dùng của bạn. Ngày đầu của ngôn ngữ này stack rằng Facebook đang phát triển, công ty tiếp tục mở rộng phát triển truy cập công nghệ cơ bản của nó. Có API lưu trữ để tải lên hình ảnh lên Facebook, và thậm chí cả một hệ thống cơ sở dữ liệu cho dữ liệu của bạn mà Facebook sẽ tổ chức. Khi những khả năng tăng trưởng, do đó đã làm phức tạp của các API. Facebook cũng cần thiết để tìm cách tốt hơn để giao tiếp với các nhà phát triển đã xây dựng thư viện client cho các API Facebook khác nhau mà không có trong danh sách các ngôn ngữ được hỗ trợ chính thức. Những đóng góp của cộng đồng cho phép các nhà phát triển bằng các ngôn ngữ như ColdFusion, Ruby, hoặc Flash để làm việc với các API của Facebook, nhưng những thay đổi lớn, và bổ sung, có nghĩa là các thư viện này gặp nhiều khó khăn (tốt nhất) để duy trì. Nhận ra rằng một lượng lớn khán giả của người dùng của họ có thể dễ dàng bị nhầm lẫn với các danh sách ngày càng tăng của các chức năng tham số REST, ngôn ngữ trung gian, và một hiện thực ngày càng tăng rằng điện thoại di động là ở đây để ở lại, Facebook đã bắt đầu làm việc trên thương hiệu riêng nền tảng phát triển của họ để làm cho một số chi tiết thường sử dụng những thứ xa dễ dàng hơn để thực hiện, và thay đổi cách thức mà các nhà phát triển nói về cách sử dụng các nền tảng Facebook
đang được dịch, vui lòng đợi..