Java code to post on FB business page wall - facebook

Does anyone has an idea how can I post text/images on facebook BUSINESS page wall from my webserver (Java).
I know how to do it on personal profile (involving Apps) but for business page I ahve no idea, since I have found out that cannot create an App for FB business page.

You do it with an app as well, but you get a page access token first.

Related

Get a Facebook page's posts from a PHP website

I'm developing a friend's company web site (PHP). He would like to display last Facebook posts from his professional Facebook page.
I'm using the Facebook Graph API for the first time and the documentation is huge and not user friendly at all. Anyway I created a Facebook App. After retrieving OAuth token it looks as simple as:
$data = file_get_contents("https://graph.facebook.com/".$pageId."/feed?access_token=".$token."&limit=10&fields=message,link,attachments,created_time,full_picture,picture,timeline_visibility");
BUT from what I understand this requires the Page Public Content Access permission. To get it you need to review your app.
The review process is insane! My app was rejected 3 times and they didn't explain how to make it pass. Each time they simply replied with this laconic message:
Is there any other way to get the posts of a public page?
Thanks a lot for your help! It will be much appreciated!

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.

Post to facebook company page using sharekit

Hope someone out there can help.
I'm developing an IOS app using sharekit to access facebook. The app needs the user to post to his/her facebook page and the post should also appear on the clients company/brand page.
I have create a test company page through the following page ... http://www.facebook.com/pages/create/
using sharekit i have been able to post without any errors to the company page using its id. But these post do not appear on the company page.
is it possible to post to both a users and a company page using sharekit?
Any pointers would be great
thanks in advance

Can a FB App "via appName" link to our Fan Page? - What do you do?

I created a FB App to facilitate FB Connect authentication on my website.
Users can share content from my site to Facebook via the same FB app.
We also created a FB Fan Page to grow our community reach.
However a FB App is a separate entity than a Fan Page, whatever content is shared via our website to FB the App link sends the users to an empty App page while all the fuzz is in our Fan page.
I did an extensive research for this issue and only came up with this useful post here in stackoverflow: "Fan page vs Application Page".
Ideally i'd want the App link ("... via appName") on every shared item to point to our fan page.
I need to know if this is an issue that FB needs to address, if i am missing something and what do you do to solve this situation
Some apps are able to do this :
http://mediafeedia.com/pro/
http://www.postplanner.com/white-label-facebook-app/
I also would be interested to know how they do this.
I've checked all app settings...
No, the App attribution on posts made via the API returns the user to that app's profile page - you'd need to have information there directing them back to your brand page if that's where you want them to go after they end up there.
I think in most cases people would click the name of the page or one of the links in the post rather than that small link at the bottom, no?

How to auto-publish wordpress post to facebook fanpage without a facebook app?

My aim is to make a facebook fanpage for a client who wants his blogposts to automatically show up on his fanpage.
I've already read several posts here in the forums. I've tried several methods to auto-publish wordpress posts to a fanpage in facebook.(notes, ...) The last method I used was making an app and using the "Simple Facebook Connect" plugin for wp.
I got quite confusing with this. I have an app called "myClient" and a fanpage called "myClient". If I publish a blogpost, it automatically shows up on the fanpage but "via myClient". Is there a way on get rid of the facebook app? I don't want to show up the via-sentences because the app is just the connection between wp and fb and has no content at all (the content is on the fanpage)
Hopefully you can help me with that!
Thanks in advance.
Whenever you want to publish something on Facebook, you need a Facebook Application as it's the "trusted" connection between your source and Facebook (this is why you have the App Secret and all the authentication/authorization process..etc).
So, How to auto-publish wordpress post to facebook fanpage without a facebook app?
You can't! But what you can do is changing the App name to something the Client would agree on (and not being "already taken", of course!).
You can use the notes facility available. It is updated when the RSS address you provide updates.
Actually there is a way to get rid of the Facebook App - by using third parties automatic Facebook publishing tools like ZapRobot - in that way you actually lean on someone else's FB API APP. Note that then you give "manage_pages" permission to the third party. The process should be:
1) Register with ZapRobot - this is a Facebook login, you give them posting rights to your page
2) Define a job that posts A LINK (ignore their categories) while the link is pointing to the RECENT wordpress item on your blog
Good luck :-)