





/*
 * Show the feed form. This would be typically called in response to the
 * onclick handler of a "Publish" button, or in the onload event after
 * the user submits a form with info that should be published.
 *
 */
function facebook_publish_feed_story(form_bundle_id, template_data) {
	
	//	Function that will load the feed form
	var func=function(){
		FB.Connect.showFeedDialog(form_bundle_id, template_data);
		
		// hide the "Loading feed story ..." div
		//ge('feed_loading').style.visibility = "hidden";
	};
	
	// Load the feed form
	FB.ensureInit(func);
}







/*
	Site Specific Functions!
*/
function facebook_share_picture(formTemplateBundleID,url_view,url_thumb,title,description)
{
	//	Make sure user is logged in, then do the following
	FB.Connect.requireSession(function(){
		
		//	First prepare the images array
		var data=
			{
				'images':[{'src':url_thumb,'href':url_view}],
				'title':title,
				'description':description
			};
		
		FB.Connect.showFeedDialog(formTemplateBundleID,data);
		
		});
}







