I am using the FB Graph API in iOS to publish to the user's wall. I want to connect an audio file located somewhere else. Since "pinning" seems invalid anymore, I'm trying to use og: audio as a property:
SBJSON *jsonWriter = [[SBJSON new] autorelease];
NSString *fileURL = [NSString stringWithFormat:@"http://site-addr.com/%@", @"tst.mp3"];
NSDictionary *properties = [NSDictionary dictionaryWithObjectsAndKeys:
fileURL, @"og:audio",
strText, @"og:audio:title",
nil];
NSString *propStr = [jsonWriter stringWithObject:properties];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"message Text",@"message",
@"Martha",@"name",
@"http://addr/something.jpg", @"picture",
propStr, @"properties",
nil];
[facebook requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];
Somehow all I get is "og: audio" .... like text in a message. I wonder how to send an audio file as a player to a message.
source
share