Frictionless Requests on iOS - how? [duplicate]

你。 提交于 2019-12-24 04:46:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!