问题
How do you enable frictionless requests in the Facebook iOS SDK? I saw Ole Begemann's post that it now "just works", but I get the request dialog every time.
回答1:
Frictionless requests can be turned on by setting the "frictionless" parameter of the apprequests dialog to "1". For example;
// create a dictionary for our dialog's parameters
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity: 7];
// set the frictionless requests parameter to "1"
[params setObject: @"1" forKey:@"frictionless"];
// ... add other parameters ...
// show the request dialog
[facebook dialog:@"apprequests" andParams:params andDelegate: nil];
This also answers Facebook IOS SDK Frictioless Requests
来源:https://stackoverflow.com/questions/7964069/frictionless-requests-on-ios-how