I am developing an application which needs me to publish an audio file to facebook account. I am publishing it through FBStream and in the
NSString *str = @"{'media': [{
'type': 'music',
'src': 'http://www.looptvandfilm.com/blog/Radiohead%20-%20In%20Rainbows/01%20-%20Radiohead%20-%2015%20Step.MP3',
'title': '15 Step',
'artist': 'Radiohead',
'album': 'In Rainbows'
}]}";
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys: str, @"attachment" ,nil,@"message",nil];
[[FBRequest requestWithDelegate:self] call:@"facebook.stream.publish" params:params];
I can publish/post my images and videos to facebook using same pattern, but when I try this code it show “type music is not supported”. I got this string value from: http://developers.facebook.com/docs/guides/attachments.
Please help me to get out of it.
You can post it, by using this string(str) format,