【发布时间】:2014-11-30 00:46:08
【问题描述】:
我运行了这段代码,但它没有返回任何值。我很难将我的故事发布到 Facebook 时间线,以便在点击时简单地启动我的应用程序。我主要是移动应用程序,所以在尝试了元标记并且也不起作用之后,我正在尝试这种也不起作用的托管方法。有谁知道我做错了什么?
[FBRequestConnection startWithGraphPath:@"/MyNumericFacebookAppID/app_link_hosts"
parameters:nil
HTTPMethod:@"GET"
completionHandler:^(
FBRequestConnection *connection,
id result,
NSError *error
) {
_AppLinksHostURL_ID = [result objectForKey:@"id"]; // store this ID in an NSString
NSLog(@"App Links Result = %@", result);
NSLog(@"App Links Host URL ID = %@", _AppLinksHostURL_ID);
//[self postOGStoryWithCustomURL];
if(error) NSLog(@"error = %@", error.description);
}];
【问题讨论】: