<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BlackBerry Developer Blog &#187; facebook</title>
	<atom:link href="http://devblog.blackberry.com/tag/facebook/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.blackberry.com</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 08:21:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='devblog.blackberry.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/9ef0a66c09615fa946c4179662398878?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>BlackBerry Developer Blog &#187; facebook</title>
		<link>http://devblog.blackberry.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://devblog.blackberry.com/osd.xml" title="BlackBerry Developer Blog" />
	<atom:link rel='hub' href='http://devblog.blackberry.com/?pushpress=hub'/>
		<item>
		<title>UCOSP Undergraduate Capstone Open Source Projects 2013 Midterm Update</title>
		<link>http://devblog.blackberry.com/2013/04/ucosp-undergraduate-capstone-open-source-projects-2013-midterm-update/</link>
		<comments>http://devblog.blackberry.com/2013/04/ucosp-undergraduate-capstone-open-source-projects-2013-midterm-update/#comments</comments>
		<pubDate>Mon, 01 Apr 2013 13:09:04 +0000</pubDate>
		<dc:creator>Tim W.</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[#bbucosp]]></category>
		<category><![CDATA[bbui.js]]></category>
		<category><![CDATA[BlackBerry 10]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[hackathon]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[UCOSP]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=14434</guid>
		<description><![CDATA[Our open source projects with university students from across Canada have been going superbly this term with many excellent contributions to the BlackBerry Open Source community. This is our second post this term, the first one being about the kickoff sprint at Facebook headquarters. First let’s hear what Amritpal has to say about what he’s [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14434&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://rimdevblog.files.wordpress.com/2013/04/uscop1.png"><img class="aligncenter size-full wp-image-14435" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2013/04/uscop1.png?w=435&#038;h=352" width="435" height="352" /></a></p>
<p>Our open source projects with university students from across Canada have been going superbly this term with many excellent contributions to the BlackBerry Open Source community. This is our second post this term, the first one being about the <a href="http://devblog.blackberry.com/2013/02/ucosp-kickoff/">kickoff sprint</a> at Facebook headquarters. First let’s hear what <a href="https://github.com/1ap1">Amritpal</a> has to say about what he’s been up to.</p>
<p><span id="more-14434"></span></p>
<blockquote><p>“Being a part of the Blackberry team through <a href="http://ucosp.ca/">UCOSP</a> has been a world of firsts: contributing to an open source project, <a href="https://github.com/blackberry/bbUI.js">bbUI.js</a>, and developing my own mobile application.</p>
<p>In the first month of UCOSP, I was contributing to bbUI.js with bug fixes and features. About three weeks ago, I learned that BlackBerry extended their limited edition device upgrade. From that point, the race was on to create fully functional and entertaining application (who needs productivity!). I chose to create a 2D game in HTML5. Having not created a mobile application before, the entire process was a learning experience that encompassed the canvas element to using bbui.js in real life applications.</p>
<p>During the process, my go to resource was the BB10 Sample apps repository. With a variety of applications that make use of a diverse set of BB10 elements, it provided helpful launch pad and reference. I was able to use code to get my application set up (config.xml and index.html examples specifically), and see examples of API calls, and bbUI.js use cases.&#8221;</p></blockquote>
<p>Here are some helpful tips for a new BlackBerry 10 WebWorks developer:</p>
<ol>
<li>Set up your development environment such that you don’t have to recompile after every modification. (See <a href="http://devblog.blackberry.com/2009/12/update-your-blackberry-widget-without-recompiling">http://devblog.blackberry.com/2009/12/update-your-blackberry-widget-without-recompiling</a>)</li>
<li>Test your application on device frequently! Don’t assume Ripple is an exact replication of the BlackBerry 10 experience. From my own development experience, I had my biggest ‘oh-no’ moment when I tested my application on device after hours of development time and it was not functioning properly. After dreading the hours of reverts I would have to make, I was able solve the issue through a quick search on the WebWorks forum.</li>
<li>Finally, use the <a href="http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/bd-p/browser_dev">Web and WebWorks Development forum</a>! Tips, helpful developers and an archive of other issues faced by developers</li>
</ol>
<p>Since this posting is somewhat delayed from when Amritpal initially wrote it, his application has actually been approved so you can <a href="http://appworld.blackberry.com/webstore/content/24372915/">download</a> it to your BlackBerry 10 device and check it out. Another student, <a href="https://github.com/williekwok">Willie</a>, had this to say about his work so far:</p>
<blockquote><p>“Since the code sprint in mid-January, I mostly focused on getting myself acquainted with BlackBerry WebWorks and the bbUI.js components. Working on bbUI.js allowed me to get my feet wet with mobile web development, and the entire project is a great resource to get acquainted with Blackberry and developing web applications on the platform.</p>
<p>I’ve been mainly focusing on developing a mobile application using HTML5 and jQuery Mobile with <a href="http://docs.phonegap.com/en/2.5.0/guide_getting-started_blackberry_index.md.html#Getting%20Started%20with%20BlackBerry">PhoneGap</a> to test and deploy on BlackBerry 10 (a health activity tracker). This has been my first experience with mobile development and in the past month it’s been extremely rewarding. Working with the various PhoneGap plugins that is provided allowed me to access the Blackberry camera functionality easily and the built-in Ant build and deploy scripts make it very easy to test on an actual device. The next step is to add bbUI.js elements to give any application a native look and feel, which is all easily accessible on GitHub.</p>
<p>As the technical lead at a mobile health technology startup, it’s been challenging to navigate through the mobile space and its fragmentation. BlackBerry 10 WebWorks has provided an easy and logical way to develop for the BlackBerry 10 platform while also giving the flexibility to use web frameworks that can work on a variety of platforms. BlackBerry has made the development process smooth and seamless for even people inexperienced with mobile development to jump in!</p>
<p>For the rest of the term, I’m looking forward to completing/refining my application and also continue contributing to bbUI.js”</p></blockquote>
<p>As you can see, the students are doing some great work. In our next update we hope to showcase some achievements in WebWorks Extension development. Until then, maybe you’d like to <a href="http://blackberry.github.com/howToContribute.html">get involved</a> in Open Source at BlackBerry?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/14434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/14434/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14434&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/04/ucosp-undergraduate-capstone-open-source-projects-2013-midterm-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4af90af66399bef37f445ec81aba64a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">timwin1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/04/uscop1.png" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
		<item>
		<title>Being Social with Cascades</title>
		<link>http://devblog.blackberry.com/2013/03/cascades-socialinvocation/</link>
		<comments>http://devblog.blackberry.com/2013/03/cascades-socialinvocation/#comments</comments>
		<pubDate>Tue, 05 Mar 2013 21:44:35 +0000</pubDate>
		<dc:creator>Erin Rahnenfuehrer</dc:creator>
				<category><![CDATA[Cascades]]></category>
		<category><![CDATA[Native SDK Development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[Invocation]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[Sharing]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=14079</guid>
		<description><![CDATA[We’ve already learned that YOU ARE AWESOME and your family and friends need to be kept constantly up-to-date on all your amazing adventures. With our new socialinvocation sample we show you how you can share your content using Cascades in your BlackBerry 10 apps. The socialinvocation sample shows you how to invoke Facebook, Twitter, and [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14079&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>We’ve already learned that <a href="http://devblog.blackberry.com/2013/02/twitter-and-facebook-cards/" target="_new">YOU ARE AWESOME</a> and your family and friends need to be kept constantly up-to-date on all your amazing adventures. With our new socialinvocation sample we show you how you can share your content using Cascades in your BlackBerry 10 apps.</p>
<p>The <a href="https://github.com/blackberry/Cascades-Samples/tree/master/socialinvocation" target="_new">socialinvocation</a> sample shows you how to invoke Facebook, Twitter, and LinkedIn with all the currently supported invocation parameters. You can set your Facebook status, compose a Tweet, upload a picture, invoke a Facebook page or Twitter profile, and much more!</p>
<p style="text-align:center;"><img alt="social-invoke" src="http://rimdevblog.files.wordpress.com/2013/03/social-invoke.jpg?w=288" width="288" /> <img alt="social-invoke-2" src="http://rimdevblog.files.wordpress.com/2013/03/social-invoke-2.jpg?w=480" width="480" /></p>
<p>Besides being an avenue for seeing cute pictures of your high school friends’ kids, social media plays an important role in marketing your apps. Use the invocation framework features to direct users to your company’s Facebook page, display your Twitter feed, or allow users to post screenshots of your app! Effectively employing social media is a great way to attract new users, so be sure to take advantage of the invocation framework’s support of Facebook, Twitter, and LinkedIn.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/14079/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/14079/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14079&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/03/cascades-socialinvocation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0432900fe27aa1429d5e6809cd149a3c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">erahnen</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/03/social-invoke.jpg" medium="image">
			<media:title type="html">social-invoke</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/03/social-invoke-2.jpg" medium="image">
			<media:title type="html">social-invoke-2</media:title>
		</media:content>
	</item>
		<item>
		<title>UCOSP Kickoff Sprint at Facebook</title>
		<link>http://devblog.blackberry.com/2013/02/ucosp-kickoff/</link>
		<comments>http://devblog.blackberry.com/2013/02/ucosp-kickoff/#comments</comments>
		<pubDate>Wed, 20 Feb 2013 18:47:27 +0000</pubDate>
		<dc:creator>Tim W.</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[#bbucosp]]></category>
		<category><![CDATA[bbui.js]]></category>
		<category><![CDATA[BlackBerry 10]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[hackathon]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[UCOSP]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=13726</guid>
		<description><![CDATA[It’s been a few weeks since I met the BlackBerry Team for this term’s UCOSP program, but between the BlackBerry 10 Launch and the excitement around BlackBerry Jam Europe, it’s been a busy time on the Inside BlackBerry Developer Blog. Now that you’ve had a chance to see all the cool things that BlackBerry 10 [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13726&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>It’s been a few weeks since I met the BlackBerry Team for this term’s UCOSP program, but between the BlackBerry 10 Launch and the excitement around BlackBerry Jam Europe, it’s been a busy time on the Inside BlackBerry Developer Blog. Now that you’ve had a chance to see all the cool things that BlackBerry 10 can do and that our outstanding developer community has accomplished on the platform, let’s talk about what these students are doing to support our developer community through Open Source Software.</p>
<p style="text-align:center;"><img alt="" src="http://rimdevblog.files.wordpress.com/2013/02/img_00000043.jpg?w=500" /></p>
<p style="text-align:center;">(Our Hackathon space at Facebook)</p>
<p><span id="more-13726"></span></p>
<p>This is our second term working with the UCOSP organization, with a team of students from across Canada. This term we have 8 students, and I’m thrilled with what they’ve been able to accomplish already. First let’s hear from <a href="https://github.com/karancan" target="_new">Karan Khiani</a>, of the University of Ottawa, who is a returning student from last term:</p>
<p>&#8220;This past weekend has been a great mix of work and play. We were a huge group of people coming together from all around Canada to hack together for a whole weekend. We all gathered for a weekend in Palo Alto, CA and got to do our hacking at the Facebook Campus. From the moment we got to the campus for the first time (I learnt that Facebook is located on 1 Hacker Way) right to the time we left the campus (I learned that 82% of traffic on Facebook.com comes from outside USA) it was a weekend of discovery.</p>
<p>&#8220;Apart from having the opportunity to experience the work culture at Facebook, we managed to get quite a bit of work done ourselves. By happy coincidence, BlackBerry was hosting its final port-a-thon for the BlackBerry 10 platform. This was great timing for me as I was just about ready to get my first BlackBerry 10 app into the app store. By the time I finished my first app (a bucket list app), I had become quite familiar with the development process for the platform. This enabled me to spend another few hours to also come up with a second app (“Clock of Death”). The fact that BlackBerry 10 apps are developed using web technologies made things really convenient for me as I have a fair amount of experience working as a web developer.</p>
<p>&#8220;The folks at BlackBerry have done a great job with all the frameworks they have published to make things easier for app developers. That, combined with the power and flexibility of HTML5, makes the entire journey quite smooth! I can’t wait to come up with a killer idea for my third app.”</p>
<p>With 8 students, including 2 returning from last term, we are able to work on a few different areas at once. As a top contributor to <a href="https://github.com/blackberry/bbUI.js" target="_new">bbUI.js</a>, and now with a couple of applications developed using WebWorks, I’ve asked Karan to work on a new template for bbUI.js applications so that new developers have quick starting points for applications using bbUI.js. Two other students with strong C++ experience will be working on WebWorks Extensions using the new <a href="https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10/Template" target="_new">Template</a>, and the other four are each contributing to the bbUI.js framework. Now let’s hear from one of those students, <a href="https://github.com/haixuanc" target="_new">Haixuan Chen</a> of Simon Fraser University:</p>
<p style="text-align:center;"><img alt="" src="http://rimdevblog.files.wordpress.com/2013/02/ucosp-nfc-bbm.jpg?w=500" /></p>
<p style="text-align:center;">(Team members join a BBM group on their new Dev Alpha devices)</p>
<p>“It was a great experience to meet with a bunch of new faces from other Canadian universities, to work on a new mobile platform (BlackBerry 10), and to use a new version control system (GitHub). Everything is new, but a lot of fun too!</p>
<p>&#8220;I have had some experience of building web applications using various frameworks, and basic experience with jQuery for front-end UI. But using HTML5, CSS3, and JavaScript to build mobile application is a brand new wonderland to me.</p>
<p>&#8220;Thankfully, Tim has a magic handy <a href="https://github.com/blackberry/BB10-WebWorks-Community-Samples/tree/master/Ant-Build-Script" target="_new">Ant build script</a>, which greatly simplifies the process of building and deploying applications. I have already tried the bbUI.js samples at home. So on the first day of the hackathon, I started with the WebWorks extension sample. But I&#8217;m more interested in HTML5 and CSS3, so I spent the rest of the weekend working on bbUI.js. We have two students, Karan and Hidaya, who have already worked on bbUI.js for one term. They transferred a lot of valuable experience to newbies like me during the event. By the end of the weekend, I had submitted two pull requests regarding two bug fixes in bbUI.js. More importantly, I had gained a clear picture of the complete workflow of developing a new feature in bbUI.js, and the relationship between WebWorks framework and the underlying native device APIs.”</p>
<p>The students have already been hard at work with coding over the last few weeks and it’s exciting to see their progress. You can see what the students and our other open source developers are working on by checking in on our <a href="https://github.com/blackberry" target="_new">open source repositories</a>, and perhaps you’ll find a project that you’d like to contribute to as well.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/13726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/13726/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13726&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/02/ucosp-kickoff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4af90af66399bef37f445ec81aba64a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">timwin1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/img_00000043.jpg?w=500" medium="image" />

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/ucosp-nfc-bbm.jpg?w=500" medium="image" />
	</item>
		<item>
		<title>Over-sharing with Twitter and Facebook Cards</title>
		<link>http://devblog.blackberry.com/2013/02/twitter-and-facebook-cards/</link>
		<comments>http://devblog.blackberry.com/2013/02/twitter-and-facebook-cards/#comments</comments>
		<pubDate>Fri, 08 Feb 2013 18:24:53 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[Sharing]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=13343</guid>
		<description><![CDATA[Let’s face it: YOU ARE AWESOME. You’re the most important person in your friends&#8217; and family members&#8217; lives. They’d be completely lost, wandering the streets like zombies, without knowing what you were up to 24/7 on Twitter and Facebook. Luckily for them, sharing content from your BlackBerry WebWorks app just got super easy. While browsing [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13343&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Let’s face it: <strong>YOU ARE AWESOME</strong>. You’re the most important person in your friends&#8217; and family members&#8217; lives. They’d be completely lost, wandering the streets like zombies, without knowing what you were up to 24/7 on Twitter and Facebook.</p>
<p>Luckily for them, sharing content from your BlackBerry WebWorks app just got super easy.</p>
<p>While browsing through our ever-growing catalogue of <a href="https://github.com/blackberry/BB10-WebWorks-Samples" target="_new">Sample Apps on GitHub</a>, I realized we were missing some crucial Invocation samples for Facebook and Twitter! “Blasphemy,” you say?! I agree, so here is some quick info about how you can share data to Facebook and Twitter from your app.</p>
<p><span id="more-13343"></span></p>
<p>With only a few lines of JavaScript, you can invoke these two lovely cards.</p>
<p><img class="aligncenter size-full wp-image-13345" alt="" src="http://rimdevblog.files.wordpress.com/2013/01/devblog-oversharing-january-28.jpg?w=579&#038;h=474" width="579" height="474" /></p>
<p>&#8230;and here’s the code:</p>
<pre>function invokeTwitter() {
    blackberry.invoke.invoke({
        target: "Twitter",
        action: "bb.action.SHARE",
        type: "text/plain",
        data: "In @chadtatro we trust."
    }, onSuccess, onError);
}
function invokeFacebook() {
    blackberry.invoke.invoke({
        target: "Facebook",
        action: "bb.action.SHARE",
        type: "text/plain",
        data: "I’m eating tacos with Alex."
    }, onSuccess, onError);
}</pre>
<p>All memes and jokes aside, the invocation framework is incredibly powerful. Integrating it in to your application is another simple way for you to provide that genuine BlackBerry 10 “look and feel” to your users.</p>
<p>For the full sample app, check out our <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/invoke/invoker" target="_new">GitHub repository</a>.</p>
<p>If you have any question, concerns, or just want to show your love, you can find me on Twitter at <strong>@chadtatro</strong>. (<a href="http://twitter.com/chadtatro" target="_new">http://twitter.com/chadtatro</a>)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/13343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/13343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13343&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/02/twitter-and-facebook-cards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/01/devblog-oversharing-january-28.jpg" medium="image" />
	</item>
		<item>
		<title>BlackBerry 10 Browser Meets Benchmark Standard for HTML5 Apps</title>
		<link>http://devblog.blackberry.com/2012/11/blackberry-10-browser-html5-standards/</link>
		<comments>http://devblog.blackberry.com/2012/11/blackberry-10-browser-html5-standards/#comments</comments>
		<pubDate>Thu, 08 Nov 2012 17:00:38 +0000</pubDate>
		<dc:creator>Victoria B</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[rng.io]]></category>
		<category><![CDATA[Standards]]></category>

		<guid isPermaLink="false">https://rimdevblog.wordpress.com/?p=11927</guid>
		<description><![CDATA[Guest post from Matthew Staikos &#8211; Ed. Today, I am thrilled to tell you that the BlackBerry® 10 browser meets the Ringmark Ring 1 benchmark standard for HTML5 app compatibility. The browser team here at RIM has been working closely with the HTML5 experts at Facebook, who developed the Ringmark HTML5 test suite, to ensure [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=11927&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:left;"><em>Guest post from <a href="http://twitter.com/mrmstaikos" target="_blank">Matthew Staikos</a> &#8211; Ed.</em><br />
<a href="http://rng.io"><img class="aligncenter  wp-image-11948" title="Rng_io" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2012/11/rng_io.jpg?w=559&#038;h=717" height="717" width="559" /></a></p>
<p>Today, I am thrilled to tell you that the BlackBerry® 10 browser meets the Ringmark Ring 1 benchmark standard for HTML5 app compatibility. The browser team here at RIM has been working closely with the HTML5 experts at Facebook, who developed the Ringmark HTML5 test suite, to ensure the BlackBerry 10 browser would meet the standard. By meeting the Ringmark Ring 1 benchmark standard, developers can add a level of advanced functionality to their HTML5 apps and be confident that the BlackBerry 10 browser can execute the app without problem.<span id="more-11927"></span><strong>What is Ringmark?</strong><br />
Ringmark is an HTML5 test suite developed by Facebook and delivered to the Open Source community. It identifies a much needed standard to ensure consistency and a basic level of functionality for HTML5 app developers. In fact, Facebook says, “One of Ringmark&#8217;s primary goals is to prove that web features work for mobile web developers.” This is a great benefit to web developers and we wanted to showcase our support for this kind of standardization initiative. More info is available here – check it out or you can run the test suite against your mobile browser by visiting <a href="http://rng.io" target="_blank">http://rng.io</a>. Developers with a BlackBerry 10 Dev Alpha testing device running the latest BlackBerry 10 developer OS, will find that the browser passes all the Ring 1 tests successfully.</p>
<p><strong>What is Ring 1?</strong><br />
Ringmark connects various features into tiers, or Rings. Ring 1, which is actually the second tier, identifies functionality developers would need at a fundamental level to build some of the more advanced types of apps in HTML5, such as 2D games, music and video apps, and camera apps.</p>
<p>So, where do we go from here? On to Ring 2! We’re diligently working to continue our support for the Ringmark standard and to provide developers an increased sense of confidence in the web as a platform.</p>
<p>We’re no strangers to the importance of standardization – especially in support of Web technologies. I’m proud to say that the BlackBerry 10 Browser is not only the highest scoring browser for HTML5 standard support (on <a href="http://html5test.com" target="_blank">html5test.com</a>), but is actually built entirely in HTML5! Talk about putting your money where your mouth is, right?</p>
<p>We also participate in W3C’s Core Mobile Web Platform Community Group (AKA CoreMob), along with Facebook and other organizations dedicated to promote the adoption of the mobile web as a platform for app development.</p>
<p>Check out Ringmark and let us know what you think. And, in the meantime, score another amazing achievement for the BlackBerry 10 browser!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/11927/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/11927/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=11927&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/11/blackberry-10-browser-html5-standards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62fb1afd67b75b691d917c08c1d1cb74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">berryvic</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/11/rng_io.jpg?w=798" medium="image">
			<media:title type="html">Rng_io</media:title>
		</media:content>
	</item>
		<item>
		<title>Say It Aint S’OAuth</title>
		<link>http://devblog.blackberry.com/2012/10/say-it-aint-soauth/</link>
		<comments>http://devblog.blackberry.com/2012/10/say-it-aint-soauth/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 14:10:55 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[foursquare]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[oAuth]]></category>
		<category><![CDATA[oAuth 1.0]]></category>
		<category><![CDATA[oAuth 2.0]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=11582</guid>
		<description><![CDATA[In today’s world we’re constantly sharing information via status updates, blog posts, and even checking-in at venues. Connecting with services like foursquare and Twitter is a great way to leverage the popularity of the network within your application. So how do you actually go about integrating features from these services into your application?  First the [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=11582&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In today’s world we’re constantly sharing information via status updates, blog posts, and even checking-in at venues. Connecting with services like foursquare and Twitter is a great way to leverage the popularity of the network within your application.</p>
<p>So how do you actually go about integrating features from these services into your application?  First the needs to allow your application access to their profile, and this bring us to Open Authorization – better known as <a href="http://oauth.net/" target="_blank">OAuth</a>.</p>
<p>OAuth you say?!</p>
<p>OAuth is an open standard for authorization used by tons of popular services, foursquare, Twitter, and Tumblr, to name a few.  It allows applications to connect their users to these services without having to handle their username and password.</p>
<p>There are a couple versions of OAuth which we have created sample apps for.</p>
<p><span id="more-11582"></span></p>
<p><strong>OAuth 1</strong></p>
<p>Let’s be honest, OAuth 1 can be darn right nasty to work with out-of-the-box.  OAuth 1 and I are not really good friends, we’ve had many fights over the past year, and often I’ve been on the losing side.  In a nutshell, the way OAuth 1 works is by having an application perform a series of requests to a service, exchanging “tokens”, and ultimately granting the application access to the service on behalf of the user.  It requires several things to go just right, and if something doesn’t, access is denied.</p>
<p>Luckily there is a really awesome open-source JavaScript library written by Rob Griffiths (<a href="http://www.twitter.com/bytespider" target="_blank">@bytespider</a>) called <a href="https://github.com/bytespider/jsOAuth" target="_blank">jsOAuth</a>. JsOAuth takes the pain and extensive process of OAuth 1 away, and allows you to focus on connecting your app with a service such as Twitter rather than spend a ton of time working with the OAuth 1 protocol.</p>
<p><strong>OAuth 2</strong></p>
<p>While OAuth 1 is my adversary; OAuth 2 is my best friend.  This is the next evolution of the OAuth protocol and is used by services like foursquare, and Facebook.  OAuth 2 is much friendlier for developers to integrate into their apps, and provides much easier, and straight forward authorization “flows” to work with.  Though the standard is still evolving, it’s solid, and in contrast to OAuth 1, is amazingly easy to work with.</p>
<p><strong>The Sample Apps</strong></p>
<p style="text-align:center;"><a href="https://github.com/blackberry/BB10-WebWorks-Samples"><img class="aligncenter  wp-image-11584" title="oauth" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2012/10/oauth1.jpg?w=565&#038;h=364" height="364" width="565" /></a></p>
<p>Getting started with OAuth can be pretty intimidating to say the least.  As a former 3<sup>rd</sup> party developer, I’ve been there.  I’ve screamed at my console log, cried like a baby, and even begged the OAuth gods for it to “just work”.  Since joining the BlackBerry® Developer Relations team here at RIM®, I vowed to help make this process easier for fellow developers and I’m glad to finally say that we’ve released two sample apps on GitHub today to help guide you on your OAuth journey.</p>
<p>The first sample app shows how to integrate <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/Twitter-OAuth-1" target="_blank">Twitter into your application by using the OAuth 1</a> protocol.  You’ll learn how to quickly and painlessly authenticate with Twitter, and post a Tweet to a user’s timeline by taking advantage of the jsOAuth library.</p>
<p>The second sample shows integration with <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/Foursquare-OAuth-2" target="_blank">foursquare, and uses OAuth 2</a>.  It’ll show you how your application can authenticate a user with the service, search for near-by venues, and then check-in to a venue.</p>
<p>The third sample shows how to integrate <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/FaceBook-OAuth-2" target="_blank">Facebook and OAuth</a> 2 into your application.  You’ll learn how to authenticate a user with Facebook, and interact with their feed by posting, and reading content.</p>
<p>Each of these samples are completely Open Source, and available on GitHub.  If you find them useful, have any feedback, or need an extra helping hand along your way find me on the <a href="http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/bd-p/browser_dev" target="_blank">BlackBerry Developer Support Forums</a> or Twitter <a href="http://www.twitter.com/chadtatro" target="_blank">@chadtatro</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/11582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/11582/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=11582&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/10/say-it-aint-soauth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/10/oauth1.jpg" medium="image">
			<media:title type="html">oauth</media:title>
		</media:content>
	</item>
		<item>
		<title>Be Social – Integrate your apps with Facebook and Twitter</title>
		<link>http://devblog.blackberry.com/2012/06/integrate-apps-with-social/</link>
		<comments>http://devblog.blackberry.com/2012/06/integrate-apps-with-social/#comments</comments>
		<pubDate>Wed, 06 Jun 2012 13:33:03 +0000</pubDate>
		<dc:creator>Shadid</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java Development]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[BlackBerry 7]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[sample app]]></category>
		<category><![CDATA[social networks]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=9669</guid>
		<description><![CDATA[Find out how to integrate your app with social networks like Facebook and Twitter.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=9669&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>One of the unsung heroes of <a href="http://www.blackberry.com/bb7" target="_new">BlackBerry® 7</a> Java SDK is the Send Command Framework. Although the name doesn’t say much, this API lets you seamlessly integrate with existing apps on the device to share data. Thankfully the native <a href="http://appworld.blackberry.com/webstore/content/680/?lang=en" target="_new">Facebook®</a> and <a href="http://appworld.blackberry.com/webstore/content/8160/?lang=en" target="_new">Twitter®</a> apps are two of many!</p>
<p style="text-align:center;"><img src="http://rimdevblog.files.wordpress.com/2012/05/connected-apps-2.jpg?w=270&#038;h=360" alt="TITLE_IMAGE" width="270" height="360" /> <img title="" src="http://rimdevblog.files.wordpress.com/2012/05/connected-apps-3.jpg?w=270" alt="" width="270" /></p>
<p style="text-align:center;"><em><a href="https://github.com/blackberry/Samples-for-Java/tree/master/SocialApp" target="_new">Download the sample app</a></em></p>
<p>So this is it folks &#8212; no more hair-pulling to figure out how to talk to social networks directly. There are already apps for them, so let’s learn how to leverage those apps from ours instead of reinventing it.</p>
<p><span id="more-9669"></span></p>
<p>The first step is to create the data or context we would like to share. This context is simply a JSON object that encapsulates our data. Here is an example:</p>
<p><code>JSONObject context = new JSONObject();<br />
try {<br />
context.put(SendCommandContextKeys.TEXT, "Your Text");<br />
context.put(SendCommandContextKeys.SUBJECT, "Your Text");<br />
// context.put(SendCommandContextKeys.PATH, "file:///.....");<br />
} catch (JSONException e) {<br />
System.out.println(e.toString());<br />
}</code></p>
<p>I intentionally commented out the PATH type data because we cannot use PATH data in a context that also has TEXT or SUBJECT types. But I still wanted to highlight that we can also share a file path (e.g. a photo).</p>
<p>Once we have our data context nicely wrapped up in a JSONObject, we need to create SendCommand objects that point to specific apps with a specific context. So how do we get these SendCommands? Easy peasy &#8212; we simply query the Send Command Framework with our context data. Here’s how:</p>
<p><code>SendCommand[] commandsAll =<br />
SendCommandRepository.getInstance().get(SendCommand.TYPE_TEXT, context, true);</code></p>
<p>Notice that the 3rd parameter above is a Boolean. If true, the query returns all commands regardless if their associated applications can be opened; if false, it returns only commands whose associated applications can be opened. Ideally we would set it to false; however, in this post we will see how we can get them all and filter them in our own application logic.</p>
<p>Each SendCommand object has an ID that uniquely identifies the target app and the context. Note that the IDs are not documented as there could be so many of them, but it is fairly easy to figure them out by experimentation. Since our target is the Facebook app and the Twitter app, let me save you the work by telling you what their IDs are.</p>
<p><img class="aligncenter size-full wp-image-9672" title="" src="http://rimdevblog.files.wordpress.com/2012/05/connected-apps-1.jpg?w=550&#038;h=130" alt="" width="550" height="130" /></p>
<p>Now let’s filter:</p>
<p><code>for (int i = 0; i &lt; commandsAll.length; i++) {<br />
if (commandsAll[i].getId().equals("Twitter_text")) {<br />
commands[0] = commandsAll[i];<br />
}<br />
if (commandsAll[i].getId().equals("Facebook_text")) {<br />
commands[1] = commandsAll[i];<br />
}<br />
}</code></p>
<p>&#8230;and we are done. We have our SendCommand objects and we are free to call their run() method anywhere in our app. Be it a Button click or a Menu selection, knock yourself out!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/9669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/9669/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=9669&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/06/integrate-apps-with-social/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/25ee80c29143f159bad70d24df820bc1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shadidhaque</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/05/connected-apps-2.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/05/connected-apps-3.jpg" medium="image" />

		<media:content url="http://rimdevblog.files.wordpress.com/2012/05/connected-apps-1.jpg" medium="image" />
	</item>
	</channel>
</rss>
