Hi first i want to clarify that this is not a question about how to embed a flash player in user wall, because i already know how to do it.
The question is if anybody can help me whith my code or if someone has the same problem as me and it is a bug.
I want to publish this link ( http://www.test.hollybyte.tv/watch/4e45080a94a05f1478000000 ) into wall via Graph Api. If you see the code of the link you can see that the required metas are wrote. In fact, if you paste the link in Fb, you can see that it recognise and even publish the player.
For test purpose i have used the Graph API Explorer ( http://developers.facebook.com/tools/explorer ) with this parameters:
And it does post perfectly well, wiht the player !!
But when i tried the same thing wiht PHP using Facebook PHP SDK, it does not. It publish a link but with no picture, nor player either.
My PHP code for this is:
$facebook = new Facebook( array('appId' => $this->_appId, 'secret' => $this->_appSecret));
$param = array(...); //Array with all the data from above, the same data.
$result = $facebook->api('/'.$userId.'/feed', 'post', $param);
echo $result;
I do not understand why, whith the API Explorer works fine, but whit my PHP call does not. Please tell me if it is a bug, or what i am doing wrong.
I have to say that i have all permissions right (publish stream, offline access, read stream), and i can post to wall so it is not a permission problem (or correcti if i am wrong)
Thanks in advance for your answers.
P.D. I am not used to write in english, so forgive me if i have some grammar errors.
From the Feed dialog documentation, It doesnt look like there is supposed to be a type
parameter in the param array... In addition, the message
parameter should not be used - facebook said that they will start ignoring that parameter from July 12 :
"This field will be ignored on July 12, 2011"
They also say things like
The URL of a media file (e.g., a SWF or video file) attached to this post. If both source and picture are specified, only source is used.
You should try removing unnecessary parameters. I dont believe that there is a bug with the API... Most of the times when I have encountered these types of bugs it was an issue of wrong parameters.