I used to do this using the stream.publish method, where I specified the source file for my .swf along with other parameters to present the media, but this is now deprecated. How can I do this using the Graph API? Specifically the Facebook PHP SDK.
I used to do this using the stream.publish method, where I specified the source
Share
With the php sdk, you can post them like this:
You should be able to add the
linkattribute to the mix, but there seem to be a bug in facebook’s api at this moment that make the posts withlinkin it prevent embedding theswf. this way it will be embedded but the name in the resulting post will point to theswffile which is not good. Same values with link posted with the FB.ui from thejs sdkdoesn’t exhibit this behavior.One workaround could be to create links with the proper opengraph meta tags, and post that as
type => 'link'.the html file (video brought to you by youtube)
php sdk call to share it