Using Facebook Open Graph Story with map attachment (GeoPoint)

前端 未结 2 927
青春惊慌失措
青春惊慌失措 2020-12-20 07:22

I\'m trying to create some Open Graph Story with map attachment using iOS SDK and I\'m have some issues.

First of all I\'m having issues with the object creation...

2条回答
  •  太阳男子
    2020-12-20 07:47

    The properties don't need to be prefixed by your appnamespace, and each ':' implies a new object or dictionary.

    Try something like:

    [openGraphObject setObject:@{@"latitude": [currentVenue locationLatitude], 
                                 @"longitude": [currentVenue locationLongitude]}
                     forKey:@"location"];
    

提交回复
热议问题