Get a Facebook page's posts from a PHP website - facebook

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!

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.

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

Which app do I need to display facebook feed?

I need to display the "wall posts" from Facebook page to another website's social media wall.
The problem is that I never used neither Facebook nor any other social networks and got no clues on how do they work. That's why I'm pretty confused with API and it's terms.
The API docs say that I need a pageId for the page I'd like to display and appId and appSecret to get an access token to the feed.
I understand how to get the token and how to parse the results - but what kind of Application do I need for that? Should I create a facebook profile and make an application that would generate me these app codes? Or ask a page's owner to do it?
I spent quite a time googling but it must be something too obvious to write about it in docs? Help please?
The administrator of the facebook page is the only one that has access to the posts on the page wall.
For the APP:
The application can be created in any facebook verified account - go to: https://developers.facebook.com/apps and create the new app - this will give you the app id and secret.
Use the Facebook SDK that you feel most comfortable with to develop the app.
For the wall posts: There are several Graph API requests for wall posts in the form of:
https://graph.facebook.com/[pageid]/[call] where [call] can be posts, statuses, feed, home. See http://facebook.stackoverflow.com/questions/6214535/what-is-the-difference-between-feed-posts-and-statuses-in-facebook-graph-api for details about each.
Using an access token (that you said you already know how to get) the administrator of the page will be able to call the above URLs and get the wall posts.
For the part with posting the info on another social media website you have to specify the exact environment where you want the wall posts to end up.

developing/testing facebook apps while I'm not a facebook fans

My next side project is a facebook app. I spent a day on reading through the facebook documentation, and then figured out my facebook wall is almost blank. So how can I get enough sample data for developing/testing facebook apps in a quick way? Or which facebook geek has an account with tons of public data that I can test my app with? (I know I can create several test users and friend/comment on/like/... each other, but it is tedious to do this you know.)
Test users cannot interact with other users outside of their app, so I think what you're thinking there doesn't work. Additionally, it's against Facebook TOS to log into another user's account and I'm not aware of any public data sources. Regarding finding a bunch of Facebook pages, check out the Facebook page browser, which allows easy liking and management and should fill up your feed in no time.

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 :-)