page

page.page.get_cache

Declaration
lua
page.get_cache(account_uid [, page_id])
Description
Đọc cache Page của tài khoản Facebook. Không truyền page_id trả mảng Page; truyền page_id tìm theo id_page hoặc uid_page.
Parameters
account_uid (string): tên DB tài khoản. page_id (string, tùy chọn): Page ID hoặc UID.
Return Values
Mảng Page; hoặc table Page/nil khi chọn một Page. Trường: id_page,uid_page,name,url,token_ios,token_bus.
Example
lua
local cached = page.get_cache("100001234567890")
for _, p in ipairs(cached) do sys.log(p.id_page .. " · " .. p.name) end
Notes
Cache do fb.pages(data,"add=NAME") và fb.token_update tạo. 1.1.245 kiểm tra tên DB/ID, dùng transaction khi ghi, giữ token bị bỏ khỏi input và rollback khi lỗi.