function __Pi(name, description, hrefTitle, hrefLink, userPrompt, imagen){
    FB.ui(
    {
        method: 'stream.publish',
        message: '',
        attachment: {
            name: name,
            caption: '',
            description: (description),
	    media: [{
	        'type': 'image',
        	'src': imagen[0],
	        'href': imagen[1]}],
            href: hrefLink
        },
        action_links: [
            { text: hrefTitle, href: hrefLink }
        ],
        user_prompt_message: userPrompt
    },
    function(response) {
        if (response && response.post_id) {
		//alert('Post was published.');
        } else {
		//alert('Post was not published.');
        }

    });
}

function __P2(name, description, hrefTitle, hrefLink, userPrompt, imagen){
	FB.ui(
	{
		method: 'feed',
		app_id: '196701683706799', 
		name: name,
		link: hrefLink,
		picture: imagen[0],
		caption: '',
		description: description,
        	actions: [{ name: hrefTitle, link: hrefLink }]
	},
	function(response) {
		if (response && response.post_id) {
			//alert('Post was published.');
		} else {
			//alert('Post was not published.');
		}
	}
	);
}

function __P(name, description, hrefTitle, hrefLink, userPrompt, imagen){
	var publish = {
	  method: 'feed',
	  message: '',
	  name: name,
	  caption: 'www.embrujar.com',
	  description: (description),
	  link: hrefLink,
	  picture: imagen[0],
	  user_message_prompt: userPrompt
	};

	FB.ui(publish);
}
