Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i share a grooveshark music url to facebook with the music widget?

I'm trying to post a grooveshark url to facebook through facebook api but whenever i share, for example, http://grooveshark.com/#!/s/~/4C47F9 (through the api) i can't play it right there on facebook, i get redirected to the webpage with the music widget playing that music.
But if i copy-paste the above link to facebook i'm able to play the music right there on facebook.
What's wrong? I'm using the "url" field when posting.
Try it for yourselves.

I'm using the facebook api through an objective-c framework. the code is:

[variables setObject:@"hello there" forKey:@"message"]; 
[variables setObject:@"grooveshark.com/#!/s/~/4C47F9 " forKey:@"link"];
like image 568
Pedro Vieira Avatar asked Oct 07 '22 21:10

Pedro Vieira


1 Answers

It works if you remove the #!:

use:

http://grooveshark.com/s/~/4C47F9

in steat of:

http://grooveshark.com/#!/s/~/4C47F9
like image 120
Lutian Avatar answered Oct 12 '22 10:10

Lutian