4

概述:我想获取 Foursquare 位置并将其附加到 FB OpenGraph 对象 -使用 iOS SDK。“约翰史密斯在 /Patxi's Chicago Pizza/ 吃披萨”

FB API 文档仅显示使用直接 URL 方法的 4SQ 附件:http: //developers.facebook.com/docs/opengraph/guides/tagging/#placeobjects

但是 iOS SDK 说明没有显示如何获取 4SQ URL,并将其与 FB OpenGraph 对象相关联。这可能吗?

我尝试创建一个 FBGraphPlace,将“id”指定为 4SQ URL,然后将该 GraphPlace 附加到 OG 对象,但 FB 忽略了它。

4

1 回答 1

1

删除条件,你应该能够做你想做的事

//if (self.selectedPlace) {
        // Facebook SDK * pro-tip *
        // We don't use the action.place syntax here because, unfortunately, setPlace:
        // and a few other selectors may be flagged as reserved selectors by Apple's App Store
        // validation tools. While this doesn't necessarily block App Store approval, it
        // could slow down the approval process. Falling back to the setObject:forKey:
        // selector is a useful technique to avoid such naming conflicts.
        [action setObject:@"https://foursquare.com/v/computer-history-museum/4abd2857f964a520c98820e3" forKey:@"place"];
    //}

发布到地点

于 2013-06-05T14:18:14.423 回答