How to Publish on my facebook page from my facebook app?

I want to publish images to my facebook page from my application/website. How can I do this? Can anyone help me out with a php code?

Answers


Use the Feed API

eg: from javascript you can do like this-

var obj =   {
                link: URL,
                message: MESSAGE,
                access_token: ACCESS_TOKEN,

            };

FB.api('/PAGE_ID/feed', 'post',obj);

Note- the ACCESS_TOKEN is the user's token for the APP.

In this way the feed will be published on PAGE through the APP


Need Your Help

TypeError: undefined is not a function Node JS

javascript node.js

I am newbie to JavaScript, I am running a very basic code but having trouble with it. The code is as follows

Transposing and Grouping Rows into columns in a SQL query

sql

I have the following two tables (SQL scripts with data):