In the previous article, we learned how to create a Facebook app, authenticate a user and access his basic information like email and friends. Now in this second part of the tutorial series, we will learn how to publish status/photo through Graph API. For this tutorial, we would need to ask for two more permissions i.e publish_stream, user_photos.

If using Facebook Login Button

<div class="fb-login-button" autologoutlink="true" data-show-faces="false" data-width="200"
data-max-rows="1" size="medium" scope="email,publish_stream,user_photos">

If using FB.login method


1

function
login()
{

2
Previous articleWorking With Facebook Javascript SDK
Next articleBig Data and your Business: Why it Matters
Welcome to Loginworks! Our team of technical writers works extensively to share their knowledge with the outer world. Our professional writers deliver first-class business communication and technical writing to go extra mile for their readers. We believe great writing and knowledge sharing is essential for growth of every business. Thus, we timely publish blogs on the new technologies, their related problems, their solutions, reviews, comparison, and pricing. This helps our readers to get the better understanding of the technologies and their benefits. For the everyday updates on technologies keep visiting to our blog.