<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Adobe Flash &#187; API</title>
	<atom:link href="http://www.adobeflash.es/category/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adobeflash.es</link>
	<description>Adobe Flash :: Agregador de Blogs sobre Adobe Flash y Actionscript en castellano</description>
	<lastBuildDate>Thu, 01 Sep 2011 10:34:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Acortar URLs con PHP y Goo.gl</title>
		<link>http://feedproxy.google.com/~r/unijimpe/~3/jaLAPVqQsnQ/</link>
		<comments>http://feedproxy.google.com/~r/unijimpe/~3/jaLAPVqQsnQ/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 01:36:09 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[goo.gl]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Servicios Web]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=1259</guid>
		<description><![CDATA[<p><a href="http://goo.gl">Goo.gl</a> es el servicio de Google para acortar URLs semejante a Bit.ly que ofrece un API que permite acortar y expandir las URLs de manera sencilla. Además de ello ofrece estadísticas de visitas a nuestras URLs&#8230;</p>


Related posts:<ol><li><a href='http://feedproxy.google.com/~r/unijimpe/~3/Wn8gRImzpg8/' rel='bookmark' title='Permanent Link: Protege tu web del SPAM con PHP y Akismet'>Protege tu web del SPAM con PHP y Akismet</a> <small>Akismet el servicio que filtra los mensajes considerados como SPAM...</small></li>
<li><a href='http://feedproxy.google.com/~r/unijimpe/~3/4Bx-VoksjEk/' rel='bookmark' title='Permanent Link: PHP con MySQL: Editar Registros con MySQL'>PHP con MySQL: Editar Registros con MySQL</a> <small>Continuando con la serie de artículos para trabajar con datos...</small></li>
<li><a href='http://tutorialesadobe.com/dreamweaver/configuracion-uso-basico-dreamweaver-php-mysql/' rel='bookmark' title='Permanent Link: Configuración y uso básico de Dreamweaver con PHP y Mysql'>Configuración y uso básico de Dreamweaver con PHP y Mysql</a> <small>En este video-tutorial mostramos cómo configurar y usar Dreamweaver con...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a> en el blog <a href="http://blog.unijimpe.net" target="_blank">http://blog.unijimpe.net</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://feedproxy.google.com/~r/unijimpe/~3/jaLAPVqQsnQ/" target="_blank">http://feedproxy.google.com/~r/unijimpe/~3/jaLAPVqQsnQ/</a></p>
<script type="text/javascript">
window.location = "http://feedproxy.google.com/~r/unijimpe/~3/jaLAPVqQsnQ/"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>

<p><a href="http://feedads.g.doubleclick.net/~a/64hPr4u5-QHzQeSH6aHupXuPSYU/0/da" target="_blank"><img src="http://feedads.g.doubleclick.net/~a/64hPr4u5-QHzQeSH6aHupXuPSYU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/64hPr4u5-QHzQeSH6aHupXuPSYU/1/da" target="_blank"><img src="http://feedads.g.doubleclick.net/~a/64hPr4u5-QHzQeSH6aHupXuPSYU/1/di" border="0" ismap="true"></img></a></p><p><a href="http://goo.gl" target="_blank">Goo.gl</a> es el servicio de Google para acortar URLs semejante a Bit.ly que ofrece un API que permite acortar y expandir las URLs de manera sencilla. Además de ello ofrece estadísticas de visitas a nuestras URLs acortadas para una análisis del rendimiento.</p><p><strong>Creando un API Key</strong><br /> El proceso completo para hacer uso del API esta explicado en <a href="http://code.google.com/apis/urlshortener/v1/getting_started.html" target="_blank">Getting Started - Google URL Shortener API</a>. Donde se explica que para hacer poder acortar las URLs es necesario tener un API Key. Este key es gratuito y para obtenerlo hay que seguir los siguientes pasos.</p><ul><li>Entra a <a href="http://code.google.com/apis/console/" target="_blank">Google API Console</a>.</li><li>Crea un nuevo proyecto y activa "<em>URL Shortener API</em>".</li><li>Click en el menú "<em>Identity</em>" y en la sección <em>Access Key</em> encontrarás tu key.</li></ul><p><strong>Creando la Clase para Goo.gl</strong></p><p>De acuerdo a la documentación creamos un clase en PHP con dos métodos <em>shorten</em> para acortar un URL y <em>expand</em> para expandir URLs.</p><div class="syntax_hilite"><div id="php-55"><div class="php"><ol><li style="color:#3A6A8B;"><div style=""><span style="color:#000000;">class</span> Googl <span style="color:#006600;">&#123;</span></div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; <span style="color:#000000;">var</span> <span style="color:#0000FF;">$path</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; <span style="color:#000000;">function</span> Googl<span style="color:#006600;">&#40;</span><span style="color:#006600;">&#41;</span> <span style="color:#006600;">&#123;</span></div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">path</span> = <span style="color:#FF0000;">"https://www.googleapis.com/urlshortener/v1"</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; <span style="color:#006600;">&#125;</span></div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; <span style="color:#000000;">function</span> shorten<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$url</span>, <span style="color:#0000FF;">$key</span><span style="color:#006600;">&#41;</span> <span style="color:#006600;">&#123;</span></div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$ch</span> = curl_init<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">path</span>.<span style="color:#FF0000;">"/url?key="</span>.<span style="color:#0000FF;">$key</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_RETURNTRANSFER, <span style="color:#000000;">true</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_POST, <span style="color:#000000;">true</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_HTTPHEADER, <a href="http://www.php.net/array" target="_blank"><span style="color:#000066;">array</span></a><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">'Content-type: application/json'</span><span style="color:#006600;">&#41;</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_POSTFIELDS, json_encode<span style="color:#006600;">&#40;</span><a href="http://www.php.net/array" target="_blank"><span style="color:#000066;">array</span></a><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">'longUrl'</span> =&gt; <span style="color:#0000FF;">$url</span><span style="color:#006600;">&#41;</span><span style="color:#006600;">&#41;</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$rpta</span> = curl_exec<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span> = json_decode<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$rpta</span>, <span style="color:#000000;">true</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; curl_close<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$data</span><span style="color:#006600;">&#91;</span><span style="color:#FF0000;">"id"</span><span style="color:#006600;">&#93;</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; <span style="color:#006600;">&#125;</span></div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; <span style="color:#000000;">function</span> expand<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$url</span><span style="color:#006600;">&#41;</span> <span style="color:#006600;">&#123;</span></div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$ch</span> = curl_init<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">path</span>.<span style="color:#FF0000;">"/url?shortUrl="</span>.<span style="color:#0000FF;">$url</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_RETURNTRANSFER, <span style="color:#000000;">true</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$rpta</span> = curl_exec<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span> = json_decode<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$rpta</span>, <span style="color:#000000;">true</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; curl_close<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$data</span><span style="color:#006600;">&#91;</span><span style="color:#FF0000;">"longUrl"</span><span style="color:#006600;">&#93;</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; <span style="color:#006600;">&#125;</span>&nbsp; &nbsp;</div></li><li style="color:#26536A;"><div style=""><span style="color:#006600;">&#125;</span></div></li></ol></div></div></div><p></p><p>Este código lo guardamos en un archivo llamado <em>googl.php</em>.</p><p><strong>Utilizando la clase</strong></p><p>Para utilizar la clase lo primero es incluir la clase al inicio de nuestro archivo PHPy luego creamos una instancia del objeto para utilizarlo posteriormente.</p><div class="syntax_hilite"><div id="php-56"><div class="php"><ol><li style="color:#3A6A8B;"><div style=""><span style="color:#616100;">require</span><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"googl.php"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style=""><span style="color:#0000FF;">$googl</span> = <span style="color:#000000;">new</span> Googl<span style="color:#006600;">&#40;</span><span style="color:#006600;">&#41;</span>;</div></li></ol></div></div></div><p></p><p>Entonces si deseamos acortar un URL haremos uso del método <em>shorten</em> el cual recibe dos parámetros el primero el URL que deseamos acortar y el segundo es tu Key.</p><div class="syntax_hilite"><div id="php-57"><div class="php"><ol><li style="color:#3A6A8B;"><div style=""><span style="color:#616100;">require</span><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"googl.php"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style=""><span style="color:#0000FF;">$googl</span> = <span style="color:#000000;">new</span> Googl<span style="color:#006600;">&#40;</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style=""><span style="color:#0000FF;">$urlmin</span> = <span style="color:#0000FF;">$googl</span>-&gt;<span style="color:#006600;">shorten</span><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"http://blog.unijimpe.net/tubeplayer/"</span>, <span style="color:#FF0000;">"tu-api-key"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style=""><a href="http://www.php.net/echo" target="_blank"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"urlmin: "</span>.<span style="color:#0000FF;">$urlmin</span>;</div></li></ol></div></div></div><p></p><p>Si por el contrario deseamos expandir un URL ya acortado, haremos uso del método <em>expand</em> el cual recibe un único parámetro que el URL acortado que deseamos expandir.</p><div class="syntax_hilite"><div id="php-58"><div class="php"><ol><li style="color:#3A6A8B;"><div style=""><span style="color:#616100;">require</span><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"googl.php"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style=""><span style="color:#0000FF;">$googl</span> = <span style="color:#000000;">new</span> Googl<span style="color:#006600;">&#40;</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style=""><span style="color:#0000FF;">$urlmax</span> = <span style="color:#0000FF;">$googl</span>-&gt;<span style="color:#006600;">expand</span><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"http://goo.gl/E6pAi"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style=""><a href="http://www.php.net/echo" target="_blank"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"urlmax: "</span>.<span style="color:#0000FF;">$urlmax</span>;</div></li></ol></div></div></div><p></p><p>Como se puede ver el uso de esta clase es muy sencilla, solo hay que indicar el URL que deseamos acortar junto con nuestro API y generaremos automáticamente la versión acortada del mismo. Además de ello esta URL se anexará a nuestra cuenta de Goo.gl y podremos ver las estadísticas de visitas.</p><p style="text-align:left;"><a href="http://blog.unijimpe.net/download/googl-class.zip" title="PHP Goo.gl Class" target="_blank"><img src="http://blog.unijimpe.net/btdown.png" border="0"></a></p><p style="font-size: 10px;border-top: 1px solid #666666;margin-top=12px;padding-top:6px;">&copy; 2006 - 2011 <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a> - Utiliza este feed solo para uso personal, partes de este feed pueden ser utilizados mencionando al autor, no esta permitido publicar enteramente este feed para uso comercial sin permiso del autor.</p><br /> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unijimpe?a=jaLAPVqQsnQ:-WD9jisEmA4:yIl2AUoC8zA" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unijimpe?a=jaLAPVqQsnQ:-WD9jisEmA4:D7DqB2pKExk" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?i=jaLAPVqQsnQ:-WD9jisEmA4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unijimpe?a=jaLAPVqQsnQ:-WD9jisEmA4:F7zBnMyn0Lo" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?i=jaLAPVqQsnQ:-WD9jisEmA4:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/unijimpe/~4/jaLAPVqQsnQ" height="1" width="1"/>
<p><span style="background-color:yellow">Autor del post:</span> <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://feedproxy.google.com/~r/unijimpe/~3/jaLAPVqQsnQ/" target="_blank">http://feedproxy.google.com/~r/unijimpe/~3/jaLAPVqQsnQ/</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.unijimpe.net/acortar-urls-con-php-y-goo-gl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Graph Api – Users (birthday, email, link, about) – Tutorial</title>
		<link>http://muelalab.com/blog/facebook/facebook-graph-api-users-birthday-email-link-about-tutorial</link>
		<comments>http://muelalab.com/blog/facebook/facebook-graph-api-users-birthday-email-link-about-tutorial#comments</comments>
		<pubDate>Tue, 25 May 2010 15:21:40 +0000</pubDate>
		<dc:creator>Daniel Muela</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Aplicacion]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[Graph Api]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://muelalab.com/blog/?p=225</guid>
		<description><![CDATA[Buenas buenas.. una ves mas aqui con un tutorial express!!!.. he recibido algunos correos que queiren q les hable mas de la Graph Api de Facebook y con gusto lo hare solo que ahora como lo dije en un post anterior estoy con un nuevo proyecto y estoy usando todo el tiempo posible en el.. [...]


Related posts:<ol><li><a href='http://muelalab.com/blog/aplicaciones/curso-aplicaciones-iframe-para-facebook' rel='bookmark' title='Permanent Link: Curso Aplicaciones IFrame Para Facebook'>Curso Aplicaciones IFrame Para Facebook</a> <small>Hola Hola, en muelalab.com estamos felicez de traerles el NUEVO...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://muelalab.com/blog" target="_blank">Daniel Muela</a> en el blog <a href="http://muelalab.com/blog" target="_blank">http://muelalab.com/blog</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://muelalab.com/blog/facebook/facebook-graph-api-users-birthday-email-link-about-tutorial" target="_blank">http://muelalab.com/blog/facebook/facebook-graph-api-users-birthday-email-link-about-tutorial</a></p>
<script type="text/javascript">
window.location = "http://muelalab.com/blog/facebook/facebook-graph-api-users-birthday-email-link-about-tutorial"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>
<p>Buenas buenas.. una ves mas aqui con un tutorial express!!!.. he recibido algunos correos que queiren q les hable mas de la<strong> <em>Graph Api de Facebook</em></strong> y con gusto lo hare solo que ahora como lo dije en un post anterior estoy con un nuevo proyecto y estoy usando todo el tiempo posible en el..</p>
<p>Pero bueno sigamos!&#8230; ahroa vamos a ver como obtener por medio de la<em> Graph Api</em> alguna informacion del usuario logeado&#8230;<br />
Aqui les dejo un ejemplo:<br />
<strong><a href="http://muelalab.com/ejemplos/tutos/facebook/info.php" target="_blank">http://muelalab.com/ejemplos/tutos/facebook/info.php</a></strong></p>
<p>Vean el ejemplo!&#8230; Entre la informacion que podemos acceder esta la siguiente:</p>
<ul>
<li>ID: El id del usuario logeado</li>
<li>first_name: Primer nombre</li>
<li>last_name: Apellido</li>
<li>name: nombre completo</li>
<li>link: un link hacia el perfil del usuario</li>
<li>about: el texto que aparece debajo de la imagen del perfil</li>
<li>birthday: fecha de cumpleaños</li>
<li>work: lo que tenga escrito en la casilla trabajo</li>
<li>education: lo que tenga en la casilla educacion</li>
<li>email: Su correo electronico</li>
<li>website: su pagina web</li>
</ul>
<p>Como ven esos son los datos que podemos acceder de un USUARIO, como lo hariamos!.. mas q simple!! (ya se los habia dicho en el tutorial anterior pero parece q nadie experimento ni me hizo caso XD!!!)<br />
Lo que haremos es seguir EXACTAMENTE el tutorial de <strong><a href="http://muelalab.com/blog/facebook/graph-api-facebook-tutorial" target="_blank">Graph Api Facebook Tutorial</a></strong> hagan el tutorial y pruiebenlo.. una ves les funcione, podran acceder a la informacion del usuario simplemente ahciendo algo como esto:</p>
<pre class="brush: php; title: ;">echo '&lt;h3&gt;Mis Datos&lt;/h3&gt;&lt;br&gt;';
echo '&lt;img src=&quot;https://graph.facebook.com/'.$uid.'/picture&quot;&gt;&lt;br&gt;';
echo $me['name'];
echo &quot;&lt;br&gt;Email: &quot;.$me['email'];
echo &quot;&lt;br&gt;Cumpleaños: &quot;.$me['birthday'];
echo &quot;&lt;br&gt;About Me:&quot;.$me['about'];</pre>
<p>Calro ese codigo lo agregan al index.php donde imprimimos los datos&#8230; y listo tendran accesos a esa informacion! =)!!<br />
Espero les sea de ayuda!! y seguire colocando tutoriales!! de hecho ya tengo un muy buen ejemplo preparado!! es cuestion de escribir el tutorial!! sigan visitandonos, recomendandonos y sobre todo comentando!! hasta un gracias es bueno y si tiene dudas con gusto las resolvemos!!<br />
<a href="http://muelalab.com/ejemplos/tutos/facebook/info.rar" target="_blank"><img src="http://muelalab.com/blog/wp-content/uploads/2010/05/descargaarchivos.jpg" alt="Descarga De Archivos Muelalab.com" title="Descargar Archivos Muelalab.com" width="243" height="66" class="aligncenter size-full wp-image-100" /></a></p>
<p>Suerttee!!</p>

<p><span style="background-color:yellow">Autor del post:</span> <a href="http://muelalab.com/blog" target="_blank">Daniel Muela</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://muelalab.com/blog/facebook/facebook-graph-api-users-birthday-email-link-about-tutorial" target="_blank">http://muelalab.com/blog/facebook/facebook-graph-api-users-birthday-email-link-about-tutorial</a></p>]]></content:encoded>
			<wfw:commentRss>http://muelalab.com/blog/facebook/facebook-graph-api-users-birthday-email-link-about-tutorial/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graph Api Facebook Tutorial</title>
		<link>http://muelalab.com/blog/facebook/graph-api-facebook-tutorial</link>
		<comments>http://muelalab.com/blog/facebook/graph-api-facebook-tutorial#comments</comments>
		<pubDate>Sat, 15 May 2010 19:39:18 +0000</pubDate>
		<dc:creator>Daniel Muela</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Aplicacion]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[Graph Api]]></category>

		<guid isPermaLink="false">http://muelalab.com/blog/?p=183</guid>
		<description><![CDATA[Hace algunos dias Facebook mostro su nuevo sistema &#8220;Graph Api&#8221; que nos permitira desarrollar sitios sociales mas facilmente, simplificando la manera que los desarrolladores leremos y enviaremos informacion a Facebook. La Api representa como objetos a cualquier cosa, por ejemplo a la gente, o las fotos o paginas de fans&#8230; Cada uno de estos objetos [...]


Related posts:<ol><li><a href='http://muelalab.com/blog/aplicaciones/curso-aplicaciones-iframe-para-facebook' rel='bookmark' title='Permanent Link: Curso Aplicaciones IFrame Para Facebook'>Curso Aplicaciones IFrame Para Facebook</a> <small>Hola Hola, en muelalab.com estamos felicez de traerles el NUEVO...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://muelalab.com/blog" target="_blank">Daniel Muela</a> en el blog <a href="http://muelalab.com/blog" target="_blank">http://muelalab.com/blog</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://muelalab.com/blog/facebook/graph-api-facebook-tutorial" target="_blank">http://muelalab.com/blog/facebook/graph-api-facebook-tutorial</a></p>
<script type="text/javascript">
window.location = "http://muelalab.com/blog/facebook/graph-api-facebook-tutorial"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>
<p>Hace algunos dias Facebook mostro su nuevo sistema &#8220;<strong>Graph Api</strong>&#8221; que nos permitira desarrollar sitios sociales mas facilmente, simplificando la manera que los desarrolladores leremos y enviaremos informacion a Facebook. La Api representa como objetos a cualquier cosa, por ejemplo a la gente, o las fotos o paginas de fans&#8230; Cada uno de estos <strong>objetos tiene un ID unico</strong> y se puede obtener la informacion de manera simple mediante el siguiente enlace https://graph.facebook.com/ID (ejemplo: <a href="https://graph.facebook.com/100000498077405" target="_blank">https://graph.facebook.com/100000498077405</a> &#8211; mi informacion)</p>
<p>Como vemos (abran el link de ejemplo), cada objeto dependiendo su tipo tiene cierta informacion por ejemplo un objeto de tipo &#8220;Usuario&#8221; tiene Propiedades: <em>id, first_name, last_name, name, link, about, birthday, work, education, email, website</em> y tambien tiene &#8220;<strong>conexiones</strong>&#8221; que podrian ser <em>friends, post, groups, picture</em> y podemos accesar a toda esa informacion simplemente mandando una llamda a el Api con su ID (user id).. Ahora vamos a ver un ejemplo para hacer la llamda al api y obtener y mostrar inforamcion de algun usuario =)&#8230; Es Preferible que se lean la documentacion <strong><a href="http://developers.facebook.com/docs/api" target="_blank">oficial de Facebook Api</a></strong></p>
<p>Se puede hacer llamados al api tanto con PHP como con JavaScript, ahora veremos como hacerlo con PHP&#8230; Aqui Esta El Ejemplo Que Hareos&#8230;</p>
<p><strong><a href="http://muelalab.com/ejemplos/tutos/facebook/" target="_blank">Ejemplo: http://muelalab.com/ejemplos/tutos/facebook/</a></strong></p>
<p><img class="size-full wp-image-185 alignright" title="Api Graph Facebook" src="http://muelalab.com/blog/wp-content/uploads/2010/05/apigraph.jpg" alt="" width="225" height="52" />Antes de empezar necesitamos <a href="http://muelalab.com/blog/aplicaciones/tutorial-aplicacion-facebook-configuracion" target="_blank">configurar nuestra aplicacion</a>, pero ademas nos vamos a la casilla &#8220;Connect&#8221; y ponemos en &#8220;<strong>connect Url</strong>&#8221; la url donde subiran lso archvivos&#8230; (alli un tutorial Solo hasta la parte de <img class="alignleft size-full wp-image-186" title="connect Facebook" src="http://muelalab.com/blog/wp-content/uploads/2010/05/connect.jpg" alt="" width="219" height="125" />configurar) y descargar el <a href="http://github.com/facebook/php-sdk/" target="_blank"><strong>Api Facebook</strong></a> (Para descargarla abren el link y en la parte superiorm derecha veran el boton &#8220;download Source&#8221;, escojen bajarlo como formato .zip y aceptar), una ves descargada la descomprimimos y tendremos 3 Carpetas una de ellas es &#8220;src&#8221; la abrimos y  tendremos la api &#8220;facebook.php&#8221;, subimos la Api al mismo directoria que especifiquemos en &#8220;<strong>conect Url</strong>&#8220;..</p>
<p>Una ves hecho esto comenzaremos a crear nuestro archivo de ejemplo, creamos un nuevo archivo que llamaremos &#8220;index.php&#8221; lo abrimos para editar y colocamos le siguiente codigo:</p>
<pre class="brush: php;">&lt;?php
require 'facebook.php';
$facebook = new Facebook(array(
  'appId'  =&gt; '124092184283992',
  'secret' =&gt; '2e50f436c176159e9b2a06ee5e456c69',
  'cookie' =&gt; true,
));
$session = $facebook-&gt;getSession();
$me = null;
if($session){
  try {
    $uid = $facebook-&gt;getUser();
    $me = $facebook-&gt;api('/me');
  } catch (FacebookApiException $e) {
    error_log($e);
  }
}
if($me){
  $logoutUrl = $facebook-&gt;getLogoutUrl();
}else{
$loginUrl = $facebook-&gt;getLoginUrl(array('req_perms' =&gt; 'offline_access,email,user_birthday,publish_stream,read_stream'));
}
?&gt;</pre>
<ul>
<li>Explicacion: (Explicare como si ya supieran manejar PHP U.u&#8230; por que si no nunca acabo, igual si se quedan con dudas preguntan).. Primero cargamos la Api de facebook, y pasamos las propiedades necesarios para manejarlo, cambien el appID y secret por los correspondientes a su aplicacion, Se crea una session (facebbok nos permita el acceso), se verifica si Facebook nos concedio el acceso si es asi entonces obtenemos el UserID con la funcion getUser() , con <strong>api(&#8216;/me&#8217;) obtenemos una referencia a nuestro propio objeto</strong> (con nuestrra informacion), luego si el objeto $me existe (es decir estamos logeados) obtenemos la Url de &#8220;deslogeo&#8221; en caso contrario obtenemos la url de logeo&#8230; (getLogoutUrl y getLoginUrl), a esta le pasamos unos parametros que son para obtener permisos para accesar a la informacion del usuario, para conocier su email, poder publicar en su muro y leer su muro&#8230;&#8230;</li>
</ul>
<p>Masomenos asi va la cosa&#8230; ahora ya que tenemos el objeto $me al ser un objeto (array) podemos obtener la informacion simplemente pasandole el nombre de la info que requerimos por ejemplo $me["name"] nos regresaria el nombre completo del usuario =o&#8230; Vamos a continuar, Agregando el siguietne codigo (logicamnte debajo del que ya tenemos):</p>
<pre class="brush: php;">&lt;!doctype html&gt;
&lt;html xmlns:fb=&quot;http://www.facebook.com/2008/fbml&quot;&gt;
  &lt;head&gt;
    &lt;title&gt;Facebook Graph Api Tutorial&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;?
 if ($me){
    echo '&lt;a href=&quot;'.$logoutUrl.'&quot;&gt;';
    echo '&lt;img src=&quot;http://static.ak.fbcdn.net/rsrc.php/z2Y31/hash/cxrz4k7j.gif&quot;&gt;&lt;/a&gt;';
 }else{
    echo '&lt;div&gt;Logeo Sin JavaScript:&lt;br&gt;';
	echo '&lt;a href=&quot;'.$loginUrl.'&quot;&gt;&lt;img src=&quot;http://static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif&quot;&gt;&lt;/a&gt;&lt;/div&gt;';
 }
  if($me){
	echo ' &lt;h3&gt;Mis Datos&lt;/h3&gt;&lt;br&gt;';
    echo '&lt;img src=&quot;https://graph.facebook.com/'.$uid.'/picture&quot;&gt;&lt;br&gt;';
    echo $me['name'];
    }else{
    echo 'No Estas Conectado';
	}
  ?&gt;
  &lt;/body&gt;
&lt;/html&gt;</pre>
<ul>
<li>Explicacion: <strong>Notese </strong>que la Primeras dos lineas deben ser asi siempre&#8230; Hacemos un par de verificaciones, si estamos logeado (if($me)) colocamos le boton de deslogear y en otro caso pues ponemos el boton de logear, y Luergo una sengunda verificacion donde si estamos logeados mostraremos la foto del usuario, para esto llamamos a la Graph Api le pasamos el userID y luego &#8220;picture&#8221; (ya que picture no es una propiedad, s no una conexion) y luego mostramos el Nombre&#8230;.</li>
</ul>
<p>Y listo Ahora suben el archiv index.php ala misma carpeta donde especificaron en &#8220;Connect Url&#8221; junto con el facebook.php y van a su URL y veran que podran hacer la conexion desde su web!!.. y mostar inforamcion de facebook en su web!!&#8230; (como en mi ejemplo al inicio)&#8230; Muy bien! como ven es algo &#8220;facil&#8221; pero reborujado y esto fue solo php se reboruja mas con javascript xD.. Pero seguire poniendo ejemplos de ambos, practiquen, cambien las propiedad para mostrar, descarguense los archivos,etc&#8230; Espero todas su <em><strong>dudas/comentario/sugerencias</strong></em></p>
<p><em><strong><a href="http://muelalab.com/ejemplos/tutos/facebook/Face5.rar" target="_blank"><img class="aligncenter size-full wp-image-100" title="Descargar Archivos Muelalab.com" src="http://muelalab.com/blog/wp-content/uploads/2010/05/descargaarchivos.jpg" alt="Descarga De Archivos Muelalab.com" width="243" height="66" /></a></strong></em>Gracias y suerte!!!</p>

<p><span style="background-color:yellow">Autor del post:</span> <a href="http://muelalab.com/blog" target="_blank">Daniel Muela</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://muelalab.com/blog/facebook/graph-api-facebook-tutorial" target="_blank">http://muelalab.com/blog/facebook/graph-api-facebook-tutorial</a></p>]]></content:encoded>
			<wfw:commentRss>http://muelalab.com/blog/facebook/graph-api-facebook-tutorial/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acortar URLs con PHP y API Bit.ly</title>
		<link>http://feedproxy.google.com/~r/unijimpe/~3/pnh7glkaq9w/</link>
		<comments>http://feedproxy.google.com/~r/unijimpe/~3/pnh7glkaq9w/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 06:17:32 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
				<category><![CDATA[acortar]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[bit.ly]]></category>
		<category><![CDATA[expandir]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Servicios Web]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=1158</guid>
		<description><![CDATA[<p>Si deseas compartir tus enlaces en dispositivos móviles o en Twitter que tiene un límite de 140 caracteres es necesario acortar nuestros URLs. Para ello podemos utilizar <strong>Bit.ly</strong>, un popular servicio para acortar enlaces el cual acaba de sacar la nueva versión de su API, como lo detallan en <a href="http://blog.bit.ly/post/484942776/introducing-api-v3">Introducing bit.ly API Version 3</a>. En&#8230;</p>


Related posts:<ol><li><a href='http://feedproxy.google.com/~r/unijimpe/~3/jaLAPVqQsnQ/' rel='bookmark' title='Permanent Link: Acortar URLs con PHP y Goo.gl'>Acortar URLs con PHP y Goo.gl</a> <small>Goo.gl es el servicio de Google para acortar URLs semejante...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a> en el blog <a href="http://blog.unijimpe.net" target="_blank">http://blog.unijimpe.net</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://feedproxy.google.com/~r/unijimpe/~3/pnh7glkaq9w/" target="_blank">http://feedproxy.google.com/~r/unijimpe/~3/pnh7glkaq9w/</a></p>
<script type="text/javascript">
window.location = "http://feedproxy.google.com/~r/unijimpe/~3/pnh7glkaq9w/"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>

<p><a href="http://feedads.g.doubleclick.net/~a/5UOGFRyPh_74KidtUCO0UaxlAq4/0/da" target="_blank"><img src="http://feedads.g.doubleclick.net/~a/5UOGFRyPh_74KidtUCO0UaxlAq4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5UOGFRyPh_74KidtUCO0UaxlAq4/1/da" target="_blank"><img src="http://feedads.g.doubleclick.net/~a/5UOGFRyPh_74KidtUCO0UaxlAq4/1/di" border="0" ismap="true"></img></a></p><p>Si deseas compartir tus enlaces en dispositivos móviles o en Twitter que tiene un límite de 140 caracteres es necesario acortar nuestros URLs. Para ello podemos utilizar <strong>Bit.ly</strong>, un popular servicio para acortar enlaces el cual acaba de sacar la nueva versión de su API, como lo detallan en <a href="http://blog.bit.ly/post/484942776/introducing-api-v3" target="_blank">Introducing bit.ly API Version 3</a>. En una anterior oportunidad habíamos comentado como <a href="http://blog.unijimpe.net/acortar-urls-con-bit-ly-y-php/" target="_blank">Acortar URLs con bit.ly y PHP</a> pero ahora actualizaremos nuestro código utilizando el nuevo API.</p><p><strong>Nueva API Version 3</strong><br /> Examinando la documentación de la nueva API en <a href="http://code.google.com/p/bitly-api/wiki/ApiDocumentation" target="_blank">bit.ly API Documentation</a> podemos utilizar los URLs con el siguiente formato:</p><p>Para acortar un URL.<br /> <em>http://api.bit.ly/v3/shorten?login=<strong>user</strong>&#038;apiKey=<strong>key</strong>&#038;uri=<strong>url</strong>&#038;format=<strong>fmt</strong></em></p><p>Para expandir un URL<br /> <em>http://api.bit.ly/v3/expand?login=<strong>user</strong>&#038;apiKey=<strong>key</strong>&#038;shortUrl=<strong>url</strong>&#038;format=<strong>fmt</strong></em></p><p>Donde se tiene  los siguientes parámetros:</p><ul><li><strong>user:</strong> es tu nombre de usuario en bit.ly</li><li><strong>key</strong> es el API Key asociado a tu cuenta de usuario.</li><li><strong>url</strong> es el url que deseamos acortar o expandir.</li><li><strong>fmt</strong> es el formato de la respuesta (Usaremos txt que devuelve texto).</li></ul><p><strong>Creando un Clase para bit.ly</strong><br /> Basado en estos formatos podemos crear un clase básica que permite acortar o expandir URLs utilizando el nuevo API de bit.ly</p><div class="syntax_hilite"><div id="php-63"><div class="php"><ol><li style="color:#3A6A8B;"><div style=""><span style="color:#000000;">class</span> Bitly <span style="color:#006600;">&#123;</span></div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; <span style="color:#000000;">var</span> <span style="color:#0000FF;">$path</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; <span style="color:#000000;">var</span> <span style="color:#0000FF;">$user</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; <span style="color:#000000;">var</span> <span style="color:#0000FF;">$key</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; <span style="color:#000000;">function</span> Bitly <span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$_user</span>, <span style="color:#0000FF;">$_key</span><span style="color:#006600;">&#41;</span> <span style="color:#006600;">&#123;</span></div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">path</span> = <span style="color:#FF0000;">"http://api.bit.ly/v3/"</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">user</span> = <span style="color:#0000FF;">$_user</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">key</span> = <span style="color:#0000FF;">$_key</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; <span style="color:#006600;">&#125;</span></div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; <span style="color:#000000;">function</span> shorten<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$url</span><span style="color:#006600;">&#41;</span> <span style="color:#006600;">&#123;</span></div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$temp</span> = <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">path</span>.<span style="color:#FF0000;">"shorten?login="</span>.<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">user</span>.<span style="color:#FF0000;">"&amp;apiKey="</span>.<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">key</span>.<span style="color:#FF0000;">"&amp;uri="</span>.<span style="color:#0000FF;">$url</span>.<span style="color:#FF0000;">"&amp;format=txt"</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span> = <a href="http://www.php.net/file_get_contents" target="_blank"><span style="color:#000066;">file_get_contents</span></a><span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$temp</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$data</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; <span style="color:#006600;">&#125;</span></div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; <span style="color:#000000;">function</span> expand<span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$url</span><span style="color:#006600;">&#41;</span> <span style="color:#006600;">&#123;</span></div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$temp</span> = <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">path</span>.<span style="color:#FF0000;">"expand?login="</span>.<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">user</span>.<span style="color:#FF0000;">"&amp;apiKey="</span>.<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">key</span>.<span style="color:#FF0000;">"&amp;shortUrl="</span>.<span style="color:#0000FF;">$url</span>.<span style="color:#FF0000;">"&amp;format=txt"</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span> = <a href="http://www.php.net/file_get_contents" target="_blank"><span style="color:#000066;">file_get_contents</span></a><span style="color:#006600;">&#40;</span><span style="color:#0000FF;">$temp</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$data</span>;</div></li><li style="color:#3A6A8B;"><div style="">&nbsp; &nbsp; <span style="color:#006600;">&#125;</span>&nbsp; &nbsp;</div></li><li style="color:#26536A;"><div style=""><span style="color:#006600;">&#125;</span></div></li></ol></div></div></div><p></p><p>Como se observa esta clase tiene dos métodos: <em>shorten</em> y <em>expand</em>.</p><p><strong>Ejemplo de Uso</strong><br /> Para utilizar esta clase lo primero es incluir la clase al inicio de nuestro script PHP y luego crear una instancia de la clase Bitly que recibe dos parámetros (nombre de usuario y key de usuario).</p><div class="syntax_hilite"><div id="php-64"><div class="php"><ol><li style="color:#3A6A8B;"><div style=""><span style="color:#616100;">require</span><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"bitly.php"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style=""><span style="color:#0000FF;">$bitly</span> = <span style="color:#000000;">new</span> Bitly<span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"bitly-user"</span>, <span style="color:#FF0000;">"bitly-api-key"</span><span style="color:#006600;">&#41;</span>;</div></li></ol></div></div></div><p></p><p>Luego si deseamos acortar un URL lo haríamos de la siguiente forma:</p><div class="syntax_hilite"><div id="php-65"><div class="php"><ol><li style="color:#3A6A8B;"><div style=""><span style="color:#616100;">require</span><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"bitly.php"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style=""><span style="color:#0000FF;">$bitly</span> = <span style="color:#000000;">new</span> Bitly<span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"bitly-user"</span>, <span style="color:#FF0000;">"bitly-api-key"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style=""><span style="color:#0000FF;">$urlmin</span> = <span style="color:#0000FF;">$bitly</span>-&gt;<span style="color:#006600;">shorten</span><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"http://blog.unijimpe.net/utilizar-recaptcha-con-php/"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style=""><a href="http://www.php.net/echo" target="_blank"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$urlmin</span>; <span style="color:#FF9933; font-style:italic;">// imprime: http://bit.ly/cMea1K </span></div></li></ol></div></div></div><p></p><p>Si tienes un URL acortada y deseas saber el URL original puedes hacerlo de la siguiente forma:</p><div class="syntax_hilite"><div id="php-66"><div class="php"><ol><li style="color:#3A6A8B;"><div style=""><span style="color:#616100;">require</span><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"bitly.php"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style=""><span style="color:#0000FF;">$bitly</span> = <span style="color:#000000;">new</span> Bitly<span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"bitly-user"</span>, <span style="color:#FF0000;">"bitly-api-key"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#3A6A8B;"><div style=""><span style="color:#0000FF;">$urlbig</span> = <span style="color:#0000FF;">$bitly</span>-&gt;<span style="color:#006600;">expand</span><span style="color:#006600;">&#40;</span><span style="color:#FF0000;">"http://bit.ly/cMea1K"</span><span style="color:#006600;">&#41;</span>;</div></li><li style="color:#26536A;"><div style=""><a href="http://www.php.net/echo" target="_blank"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$urlbig</span>; <span style="color:#FF9933; font-style:italic;">// imprime: http://blog.unijimpe.net/utilizar-recaptcha-con-php/ </span></div></li></ol></div></div></div><p></p><p>Les dejo los archivos fuente para esta clase para que hagan sus pruebas. Si tienen sugerencias y observaciones dejen sus comentarios para poder mejorar este trabajo.</p><p style="text-align:center;"><a href="http://blog.unijimpe.net/download/bitly-class.zip" title="Bitly Class" target="_blank"><img src="http://blog.unijimpe.net/btdown.png" border="0"></a></p><p style="font-size: 10px;border-top: 1px solid #666666;margin-top=12px;padding-top:6px;">&copy; 2006 - 2010 <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a> - Utiliza este feed solo para uso personal, partes de este feed pueden ser utilizados mencionando al autor, no esta permitido publicar enteramente este feed para uso comercial sin permiso del autor.</p><br /> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unijimpe?a=pnh7glkaq9w:cRJ1SLN1Ivk:yIl2AUoC8zA" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unijimpe?a=pnh7glkaq9w:cRJ1SLN1Ivk:D7DqB2pKExk" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?i=pnh7glkaq9w:cRJ1SLN1Ivk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unijimpe?a=pnh7glkaq9w:cRJ1SLN1Ivk:F7zBnMyn0Lo" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?i=pnh7glkaq9w:cRJ1SLN1Ivk:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/unijimpe/~4/pnh7glkaq9w" height="1" width="1"/>
<p><span style="background-color:yellow">Autor del post:</span> <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://feedproxy.google.com/~r/unijimpe/~3/pnh7glkaq9w/" target="_blank">http://feedproxy.google.com/~r/unijimpe/~3/pnh7glkaq9w/</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.unijimpe.net/acortar-urls-con-php-y-apibitly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Libros gratis para aprender PHP</title>
		<link>http://feedproxy.google.com/~r/unijimpe/~3/quALHGbZE1s/</link>
		<comments>http://feedproxy.google.com/~r/unijimpe/~3/quALHGbZE1s/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 21:10:22 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[gratis]]></category>
		<category><![CDATA[gratuito]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=1116</guid>
		<description><![CDATA[<p><strong>PHP</strong> es el lenguaje mas popular para desarrollo web, en esta ocasión les presento una lista de libros gratuitos que pueden descargarse para aprender desde lo básico hasta técnicas avanzadas para crear aplicaciones utilizando Zend Framework que utiliza el patrón MVC para crear aplicaciones robustas en PHP.</p>
<p><strong>PHP 5 Power Programming</strong><br />
Uno de los mejores libros&#8230;</p>


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow">Este es un agregador de feeds de blogs relacionados con la Plataforma Flash de Adobe, no es el creador de los contenidos que contiene.</span></p>
<p>Este post fue creado por <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a> en el blog <a href="http://blog.unijimpe.net" target="_blank">http://blog.unijimpe.net</a>.<br/> Deberías haber sido redirigido al post original mediante Javascript, de no se así puedes acceder a él desde el siguiente enlace:<br/><a href="http://feedproxy.google.com/~r/unijimpe/~3/quALHGbZE1s/" target="_blank">http://feedproxy.google.com/~r/unijimpe/~3/quALHGbZE1s/</a></p>
<script type="text/javascript">
window.location = "http://feedproxy.google.com/~r/unijimpe/~3/quALHGbZE1s/"
</script>
<p><span style="background-color:yellow">Post agregado:</span></p>

<p><a href="http://feedads.g.doubleclick.net/~a/AweObWIXINTEdrM_phLx9NRvklo/0/da" target="_blank"><img src="http://feedads.g.doubleclick.net/~a/AweObWIXINTEdrM_phLx9NRvklo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/AweObWIXINTEdrM_phLx9NRvklo/1/da" target="_blank"><img src="http://feedads.g.doubleclick.net/~a/AweObWIXINTEdrM_phLx9NRvklo/1/di" border="0" ismap="true"></img></a></p><p><strong>PHP</strong> es el lenguaje mas popular para desarrollo web, en esta ocasión les presento una lista de libros gratuitos que pueden descargarse para aprender desde lo básico hasta técnicas avanzadas para crear aplicaciones utilizando Zend Framework que utiliza el patrón MVC para crear aplicaciones robustas en PHP.</p>
<p><strong>PHP 5 Power Programming</strong><br />
Uno de los mejores libros sobre PHP 5, hace una introducción a las nuevas características que tiene PHP 5, un capitulo dedicado a las sintaxis de PHP, también hay capítulos sobre acceso a base de datos, rendimiento y optimización de código. Ofrece capitulos sobre OOP, diseño de patrones e integración con XML/SOAP.</p>
<p><img src="http://blog.unijimpe.net/wp-content/uploads/2009/10/php5-power-programming.jpg" alt="php5-power-programming" title="php5-power-programming" width="189" height="250"  /></p>
<p><strong>Autores:</strong> Andi Gutmans, Stig Bakken, Derick Rethans<br />
<strong>URL:</strong> <a href="http://www.informit.com/store/product.aspx?isbn=013147149X" target="_blank">PHP 5 Power Programming</a><br />
<strong>Descarga:</strong> <a href="http://www.informit.com/content/images/013147149X/downloads/013147149X_book.pdf" target="_blank">013147149X_book.pdf</a></p>
<p><strong>PHP Cookbook</strong><br />
Este libro tiene una colección de problemas, soluciones y ejemplos prácticos para programadores PHP. Se presenta una colección amplia de las mejores técnicas para problemas comunes del día a dia en el desarrollo de PHP. Contiene más de 250 funciones, que van desde tareas simples a programas completos que resuelven tareas complejas, como la impresión de tablas en HTML y la generación de gráficos de barras.</p>
<p><img src="http://blog.unijimpe.net/wp-content/uploads/2009/10/php-cookbook.jpg" alt="php-cookbook" title="php-cookbook" width="191" height="250" /></p>
<p><strong>Autores:</strong> Adam Trachtenberg, David Sklar<br />
<strong>URL:</strong> <a href="http://commons.oreilly.com/wiki/index.php/PHP_Cookbook" target="_blank">PHP Cookbook</a></p>
<p><strong>PHP Reference: Beginner to Intermediate PHP5</strong><br />
Este libro cuenta con una colección de 250 funciones PHP con explicaciones claras seguido de ejemplos para entender el uso y el funcionamiento de estas funciones. Además se ofrece numerosas sugerencias, conceptos básicos de PHP, ejemplos de consultas a MySQL, sintaxis de expresiones regulares.</p>
<p><img src="http://blog.unijimpe.net/wp-content/uploads/2009/10/php-reference-beginner-to-intermediate-php5.jpg" alt="php-reference-beginner-to-intermediate-php5" title="php-reference-beginner-to-intermediate-php5" width="188" height="250" /></p>
<p><strong>Autor:</strong> Mario Lurig<br />
<strong>URL:</strong> <a href="http://www.lulu.com/content/2251731" target="_blank">PHP Reference: Beginner to Intermediate PHP5</a><br />
<strong>Descarga:</strong> <a href="http://www.lulu.com/product/download/php-reference-beginner-to-intermediate-php5/2720116" target="_blank">PHP Reference: Beginner to Intermediate PHP5</a></p>
<p><strong>PHP Essentials</strong><br />
Este libro trata desde la historia de PHP, luego cubre los conceptos básicos del lenguaje, la programación orientada a objetos, gestión de archivos y carpetas, integración con base de datos MySQL y SQLite, procesamiento de formularios, manejo de cookies y sesiones. Todo con ejemplos prácticos de aplicación.</p>
<p><strong>Autor:</strong> Techotopia<br />
<strong>URL: </strong><a href="http://www.techotopia.com/index.php/PHP_Essentials" target="_blank">PHP Essentials</a></p>
<p><strong>Practical PHP Programming</strong><br />
En este libro encontrarás gran cantidad de información para los que recién se inician en PHP y a la vez presenta conceptos avanzados para los mas expertos. Presenta capítulos desde las sintaxis de PHP, pasando por conexión a base de datos, tips de seguridad y ejemplos prácticos.</p>
<p><strong>Autor:</strong> Paul Hudson<br />
<strong>URL:</strong> <a href="http://www.tuxradar.com/practicalphp" target="_blank">Practical PHP Programming</a></p>
<p><strong>Zend Framework: Surviving The Deep End</strong><br />
Este libro cubre todos los aspectos del desarrollo de aplicaciones utilizando Zend Framework. Primero presenta una explicación detallada de Zend Frameword, el uso del patrón <em>Modelo-Vista-Controlador</em> (MVC) para el desarrollo de aplicaciones, un tutorial para aprender los principios básicos, luego como extender las clases existentes y finalmente como optimizar aplicaciones hechas en Zend Framework.</p>
<p><strong>Autor:</strong> Pádraic Brady<br />
<strong>URL: </strong><a href="http://www.survivethedeepend.com/" target="_blank">Zend Framework: Surviving The Deep End</a></p>
                                                <p style="font-size: 10px;border-top: 1px solid #666666;margin-top=12px;padding-top:6px;">&copy; 2006 - 2009 <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a> - Utiliza este feed solo para uso personal, partes de este feed pueden ser utilizados mencionando al autor, no esta permitido publicar enteramente este feed para uso comercial sin permiso del autor.</p><br />
                                                                                                  <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unijimpe?a=quALHGbZE1s:BGTuLeuhjt8:yIl2AUoC8zA" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unijimpe?a=quALHGbZE1s:BGTuLeuhjt8:D7DqB2pKExk" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?i=quALHGbZE1s:BGTuLeuhjt8:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unijimpe?a=quALHGbZE1s:BGTuLeuhjt8:F7zBnMyn0Lo" target="_blank"><img src="http://feeds.feedburner.com/~ff/unijimpe?i=quALHGbZE1s:BGTuLeuhjt8:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/unijimpe/~4/quALHGbZE1s" height="1" width="1"/>
<p><span style="background-color:yellow">Autor del post:</span> <a href="http://blog.unijimpe.net" target="_blank">unijimpe</a><br/>
<span style="background-color:yellow">Enlace original:</span> <a href="http://feedproxy.google.com/~r/unijimpe/~3/quALHGbZE1s/" target="_blank">http://feedproxy.google.com/~r/unijimpe/~3/quALHGbZE1s/</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.unijimpe.net/libros-gratis-para-aprender-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

