I’m using FB Graph API in iOS to post at user’s wall. I want to attach an audio file hosted somewhere else. As “attachment” seems not valid anymore, I’m trying og:audio as 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”…. as text into the post.
I wonder how to post the audio file as a player into the post.
This will present the audio content in embedded player.
Hope its helpful to someone.
Thanks