Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook graph API : audio share
    text
    copied!<p>Can I share audio using facebook graphic API </p> <ul> <li>Can I directly upload audio on facebook server like video?</li> <li>Can I share audio link on facebook and it will show embedded player on facebook?</li> </ul> <p>I have tried this solution <a href="https://stackoverflow.com/questions/8301118/ios-facebook-graph-api-post-audio-file">ios Facebook Graph API - post Audio file</a> , but it doesn't work as expected </p> <p>What I tried is to share audio link <a href="http://bit.ly/Ok4ZX6" rel="nofollow noreferrer">http://bit.ly/Ok4ZX6</a> but show it on facebook like a normal link not with embedded player <a href="https://i.stack.imgur.com/Ld67c.png" rel="nofollow noreferrer">http://i.stack.imgur.com/Ld67c.png</a></p> <p><strong>Edit</strong></p> <p><em>Code I have use :</em></p> <pre><code>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]; </code></pre> <p><em>Also used this code too :</em></p> <pre><code>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]; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload