問題描述
自 2011 年 10 月 10 日起,Facebook iOS SDK 再次支持"apprequests"對話框,用于從原生 iOS 應用程序發送用戶對用戶的請求(請參閱 Facebook 開發者文檔中的屏幕截圖 為例).
As of Oct 10, 2011, the Facebook iOS SDK does again support the "apprequests" dialog for sending user-to-user requests from native iOS apps (see the screenshots in Facebook's developer docs for an example).
與通過 Javascript 調用的 apprequests 對話框相比,缺少的一件事是啟用所謂的 無摩擦請求(參見頁面中間關于無摩擦請求的部分),即用戶允許應用在不彈出對話框的情況下發送用戶對用戶請求的能力每次在第一次彈出對話框時選中一個復選框.
One thing that's missing compared to the apprequests dialog invoked via Javascript, though, is the possibility to enable the so-called frictionless requests (see the section about frictionless requests about halfway down the page), i.e. the ability for the user to allow the app to send user-to-user requests without the dialog popping up every time by checking a checkbox when the dialog pops up first.
問題:有沒有辦法為原生 iOS 應用啟用無摩擦請求.
Question: is there a way to enable frictionless requests for native iOS apps.
推薦答案
為了回答我自己的問題,現在可以使用無摩擦請求(截至 2011 年 10 月下旬).Facebook 似乎已啟用該功能.
To answer my own question, frictionless requests now work (as of late Oct 2011). It seems Facebook has enabled the functionality.
它突然起作用的原因也可能與我們將 FB 應用 ID 從沙盒應用(用于內部測試)切換到生產中使用的應用有關.因此,Facebook 可能僅針對生產應用或逐個應用啟用無摩擦請求.
The reason it worked all of sudden might also have to do with us switching our FB app ID from a sandbox app (for internal testing) to an app used in production. So perhaps frictionless requests are enabled by Facebook only for production apps or on an app-by-app basis.
這篇關于Facebook 請求對話框:本機 iOS 應用程序中的無摩擦請求可能嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!