How to get posts from wall as facebook feed - facebook

I have a problem with Facebook. Let me explain what I'm trying to do. My friend granted me access to his fanpage as administrator. I would like to get all feeds from fanpage's wall, by using php script on my website. How can I do that ? I don't have any app id or secret id, because this is not an app - it's fanpage.

You can easily retrieve posts from feed connection of page (use posts connection if you only want posts Page own).
You'll need an application to do so because both posts and feed connection require any valid access_token for access.
Once you have access_token you may simple retrieve the posts with Graph API:
http://graph.facebook.com/PAGE_ID/feed?access_token=...

Related

Not getting friends comment data in Facebook Graph API

I am using Graph API for fetching Facebook data including posts, friends etc. While retrieving posts, I am only getting the comments made by the post admin not his friends'.
My app is in development mode, the user which was used for testing have been added as a Developer in the app. A friend of the post admin tried logging in, granted permissions to access and then liked and commented on the post. but still not getting their data. Any idea?

graph api user news feed

by calling /me/feed in graph api i can get feed like my posts or posts that i am tagged in.
How can i get a feed with my friends posts or news that i see in my wall in fb?
i mean feed like the one that i see when i login to facebook
i tryed me/feed with several parameters but no luck
same here
https://developers.facebook.com/docs/graph-api/reference no info :(
i didnt manage to find something useful in facebook graph api explorer
thanks!
How can i get a feed with my friends posts or news that i see in my wall in fb?
You can’t.
That used to be available in the very beginning via the /home edge, but that has since been removed.
There is no replacement. Friend’s posts are only available to your app, if the friend would join your app and grant it permission to read their posts.
(Plus, platform policy says apps should not replicate Facebook “core functionality”. If a user wants their news feed, they can go to Facebook ...)

How to get OTHER users' photos and albums with Facebook Graph API

Scenario: logged with my Facebook account and using a browser, I'm able to see some photos and albums of some users which aren't friends of mine (with a privacy setting of public or similar) and quite all their past profile photos.
For example the URL
https://www.facebook.com/<userid>/photos_all shows those photos.
I want to replicate behaviour with Graph API but GETting
https://graph.facebook.com/<userid>/photos?access_token=...
Gives me an empty data array.
Same scenario using tagged or albums instead of photos
I've tried to use site scraping but FB website uses AJAX to populate gridview of photos, so It's very difficult.
On Graph API Explorer I've requested and use an access token with all permissions and also a debug access token but I'm still unable to get other users' photos.
It's possibile to get photos of users which aren't in friend list with Facebook Graph API? Am I missing something?
For privacy reasons, it´s not possible to get the photos of OTHER users with the API. Even for the authorized user, you need the user_photos permission.
Scraping is not allowed btw: https://www.facebook.com/apps/site_scraping_tos_terms.php

Getting friend's wall post data via facebook API

I have never used facebook API.As part of my research project, I need to get activity data (the posts made, the links shared etc.) of a user's friends. Is it possible to get this data via facebook API? Do i need permission from user only or i need permission from user's friends too for accessing that data? I am assuming that since a user can see wall posts of his friends when he visits his friend's facebook profile, the same thing is possible using the API too.

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.