I currently have some code that consistently generates the json needed for my facebook app's streamPublish FBJS call in the desired format. Now, I am experimenting with facebook.connect and I would like to reuse the same json. While exploring facebook.connect, I came across the XFBML tag:
<fb:share-button>
and thought it would be useful to use. However, I noticed that it requires several meta tags such as those found here:
<meta name="medium" content="blog"/>
<meta name="title" content="Leonidas in All of Us"/>
<meta name="video_type" content="application/x-shockwave-flash"/>
<meta name="video_height" content="345"/> <meta name="video_width" content="473"/>
<meta name="description" content="That's the lesson 300 teaches us."/>
This seems like it may include the same data as the json passed to facebook(.connect).streamPublish. Is there a way to either
- integrate the json into this html somehow, perhaps using an "attachment" attribute?
- convert the json to this meta format automatically?
Alternatively, should I simply create a link and have an onclick() event handler that calls streamPublish?