概述:我想使用 Foursquare 位置并将其附加到 FB OpenGraph 对象 - 使用 iOS SDK。 “John Smith 在/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 忽略了它。
最佳答案
删除条件,你应该能够做你想做的
//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"];
//}
关于ios - 使用 FB iOS SDK 标记 Foursquare 地点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16781127/