406 Publish Actions With Facebook Javascript Sdk - LoginWorks

LW Employees

406 Publish Actions With Facebook Javascript Sdk

loginworks

406 Publish Actions With Facebook Javascript Sdk

Posted in technical blogs

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

give wings to your

business

smart it solutions for the most pressing problems

Leave a Reply

Your email address will not be published. Required fields are marked *