Foursquare Place Tag Using FB iOS SDK

Overview. I want to take the Foursquare location and attach it to the FB OpenGraph object - using the iOS SDK. "John Smith ate pizza at / Patxi Chicago Pizza /"

The FB API documentation shows only a 4SQ application using a direct URL approach: http://developers.facebook.com/docs/opengraph/guides/tagging/#placeobjects

However, the iOS SDK instructions do not show how to get the 4SQ URL, and map this to an OpenGraph FB object. Is it possible?

I tried to create an FBGraphPlace by assigning "id" as a 4SQ URL, and then binding this GraphPlace to an OG object, but FB ignored it.

+4
source share
1 answer

Remove the conditional expression and you can do what you want

//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 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"]; //} 

Posted to place

+1
source

Source: https://habr.com/ru/post/1483045/


All Articles