Post status update to Page Wall - facebook

I'am really new to all this Facebook development, and I wanted to integrate Facebook within my personal website.
I am now trying to test if what I want is possible.
I want to post a status from my server, via php/js to my Page in Facebook.
How can I do so?
B.W.
I saw that there is this FBJS function called "Facebook.streamPublish"
But I don't know how to integrate it.
Is there any possible way to do so?
Can you give me an example?
-Secondly, what is an access token?

You get an access_token after facebook authenticates you. You will need this access_token for all subsequent API calls. You can find the details here:
http://developers.facebook.com/docs/authentication/
You can use graph API for publishing on the wall and doing other allowed actions. Details of publishing api can be found here:
http://developers.facebook.com/docs/reference/api/post/
But do have a look on the facebook policy, because publishing automatically to a wall is considered violation.
http://developers.facebook.com/policy/

Related

Post as page Facebook graph api

It is maybe a duplicated question, sorry if it is.
I want to post on a Facebook page that I own. I am using the graph API but I don't know how can I do this.
I have an APP, I'm using it for Facebook login. But I don't know if I have to make another APP just for the extra permissions for publishing on my page because I don't want that the APP ask to extra permissions to the users that are using the Facebook's login in my page.
My goal is create posts to my Facebook page from my website.
Thanks for the help, and sorry for my bad English writing.

How to post on friend's wall using facebook API without logging in to facebook?

After latest Facebook API changes, is there any way to post on friend's wall, using authenticated access_token?
I have tried using Feed Dialog, but redirects to facebook login page. I want to bypass the login step.
Unfortunately not. From the Facebook API documentation on publishing:
"Note: If you are posting to a friend's timeline or wall, you must use the Feed Dialog."
Full details: https://developers.facebook.com/docs/reference/api/publishing/
No,You Cant
Currently, Facebook allows to post by two ways:
Using FacebookAPI
Using Facebook SDK (depends on your requirement)
And in both these methods its must that you should be an authorised user to perform the action, authentication is a must.So you can't do this without a login.
NB: As per the Facebook Developer docs, graph API no longer works .(But I would like to add on that many of the iOS apps which used this service are still functioning well). So, I prefer to use Facebook SDK.
Hope my answer is clear.

Facebook Graph API

Can I use the Facebook Graph API without the creation of my Facebook Application? As I understand it, for each operation I need to use the OAuth key. And I can only get user OAuth key if they authorize my Facebook application. Am I right?
I need to get user feed, and post to it.
Facebook Graph Api needs your APP ID which you can only get from your Facebook application. So i think its not possible to post data on facebook without having Application ID.
You can use this tool to dynamically generate an access_token for testing: https://developers.facebook.com/tools/explorer/
Also, check out RapidAPI here. I've specifically linked you to the FacebookGraphAPI block. Here you can instantaneously connect to numerous Facebook endpoints. The platform will generate a code snippet that you can directly insert into your code.
Depends on what you want to do, for most tasks you have to have an app id... but If you want to get the amount of shares for a certain page, for example, you can do it with no app ID.
I think there is FBML (facebooks mark up language) which you can embed on your site which can handle some basic tasks like commenting or liking.
No, You can't do that as Facebook Graph API needs access token which u can get only by authorising your logged-in user by your (Created) App in Facebook.

Which Facebook APIs can be used to programatically post a message?

I have an application that allows a user to post messages. I'd like to give an option to users to propagate the same posts on their Facebook wall / status. Which Facebook APIs can I leverage, including the ones that are need to authenticate the user?
You can use Facebook's JS API (useful for client-side), the new Graph API, or the old REST API. Facebook has extensive documentation at http://developers.facebook.com/docs/
The easiest path is probably to use the Facebook.streamPublish() function through the FBJS API.
You can also use streamPublish() through direct Facebook API calls, but you need extended permissions. Using FBJS, Facebook will display their own prompt to the user, so you do not need extended permissions.

Facebook Wall Post

I have created one Web Application in ASP.Net. In That am able to connect with FaceBook and getting data from logged in user's profile. now i would like to post a message on wall. i have found the STREAM.PUBLISH method but i dont know how to use it. it asks me for permission. so is there any other way to post message on wall, any exmple using ASP.Net
Thanks
Here you can find a tutorial about it:
http://www.barattalo.it/2010/01/17/posting-to-facebook-from-website-with-facebook-connect/
Since it's written in php you have to translate something, but the important job is made with the facebook javascript api.