Tôi có thể chia sẻ âm thanh sử dụng facebook API đồ họaFacebook graph API: âm thanh phần
- Tôi có thể trực tiếp tải lên âm thanh trên máy chủ facebook như video?
- Tôi có thể chia sẻ liên kết âm thanh trên facebook và nó sẽ hiển thị trình phát được nhúng trên facebook không?
Tôi đã thử giải pháp này ios Facebook Graph API - post Audio file, nhưng nó không hoạt động như mong đợi
Những gì tôi cố gắng là để chia sẻ liên kết âm thanh http://bit.ly/Ok4ZX6 nhưng hiển thị nó trên facebook như một liên kết bình thường không với cầu thủ nhúng http://i.stack.imgur.com/Ld67c.png
Sửa
Mã tôi có sử dụng:
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:4];
[params setObject:text forKey:@"message"];
[params setObject:title forKey:@"name"];
[params setObject:fileUrl forKey:@"source"];
[facebook requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];
Cũng sử dụng mã này quá:
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:4];
NSString *attachment = [NSString stringWithFormat:@"{'media': [{'type': 'mp3', 'src': '%@', 'title': '%@'}], 'messgae': 'Messgae Messgae Messgae', 'name': 'Name Name Name', 'href': '%@'}",amazon_link, title, link];
[params setObject:attachment forKey:@"attachment"];
[params setObject:text forKey:@"message"];
[params setObject:@"stream.publish" forKey:@"method"];
[facebook requestWithParams:params andDelegate:self];
nó Hey Amit bạn viết rằng bạn có thể chia sẻ video trong facebook ... bạn có thể cho tôi biết làm thế nào bạn làm điều này? –