Programmatically reading wall posts / stream of facebook "pages" - facebook

My application is taking in various streams of data from social media / rss and combining it into one feed on the service that I will offer to businesses.
So, I'd like to read facebook page streams and process them.. do I need to get permission from the owner of the facebook page? Or is this publicly accessible somehow? since these are public pages for businesses and not the stream of private facebook users.
I don't care about WRITING to a stream at this point.. just READING.

If it is public you can read through graph API using:
https://graph.facebook.com/%page_id%/feed
But you need to be logged in, even with a user that does not manage that page.

Read the Facebook API documentation. I think the Graph API and Social plugins can be used for your purpose.

Related

Need knowledge on facebook API data retrieve

I want to know, wether can I get the Facebook Page Insight Data using FB app. I am newbie and want to get data of Facebook page of registered users.
All the data as well as engagement of all post on that page.
For this you have to learn about the graph API of facebook, but for scraping the data from page you can start by reading this.

Social media notification integration to our website

Following are my requirements
created space in website that user can come and sign up with FB or Instagram to integrate their account
Through Graph API for FB and API for Instagram, I can able to view and post the images to FB (post is not possible to instagram)
My requirement would be any activities (like and share ) happened at the FB or Instagram page should receives as notification to my website
I came to know there is no direct APIs available to achieving notifications but I have seen them in "Social Stream" app.
any help would be appreciated on how could achieve this functionality
TIA
You can get likes, comments and posts using API. You can poll them at regular interval, compare new data and create your own notifications.
(You have to get your app approved by Instagram to get API permissions, which may be possible for your usecase, if you do get approval, then its possible to achieve what you are trying to do.)

Facebook public feed API

i'm working on project which mostly is a data-mining from social networks, so far, i've done twitter and it have really nice API, which allows me to pick an endpoint and recieve alredy filltered twits as streaming data. Now i'm working on a facebook, and there comes the question: with Graph API i would be able to get public feed of some definite page, but what if i would like to recieve posts from as many people as possible? Does Facebook Public Feed API works as Twitter's, and gives me data from as many sources as possible, or i missunderstood something?
Facebook has restricted public feed api usage and its now available only to handful no of teams: https://developers.facebook.com/docs/public_feed
Access to the Public Feed API is restricted to a limited set of media publishers and usage requires prior approval by Facebook. You cannot apply to use the API at this time.
You're look for the Facebook Search API. https://developers.facebook.com/docs/reference/api/search/
You'll need an app with a token to access these. Some might need higher permissions though, but the generic one will work to search commons actions types (post, places, etc) who're publicly available on the platform.
You won't be able to search for private publications. Unless you search user who gave you direct permissions to read their timeline (one by one).

How to publish a persolized newsfeed on users stream in Facebook?

I read the Facebook developers guide, but I'm not sure to have well understood wheter my goal is achievable or not.
I have developed a small app that asks to users their topics of interest, so they will receive filtered updates on those topics. This currently works, my database stores users and topics.
Now I want to publish on registered users stream a newsfeed if there are updates on the topics they selected (in the oauth dialog I asked permissions for "publish_actions").
My app doesn't use OpenGraph, I would that the newsfeed has my apps as title, a small picture and a brief description and it links to and external site (not mine).
The feed is personalized, so that's why I don't use a Facebook page.
Is it possible to realize this?
Thanks in advance
This is not allowed by Facebook Platform Policies. Publishing something to the wall must be related to something the user has done, e.g. User has read an article or User has achieved a high score. Posting an link / article to the user's wall is not allowed since it's not a direct action the user has taken.
Instead, you should provide the user with personalised RSS feeds. Each user would have their own RSS feed related to the topics they have indicated they are interested in. Facebook shouldn't be used in this way.

How do I get the number of users of a facebook application, and my facebook fan page, programatically?

Sites like appdata dot com, provide detailed stats on usage of thousands of facebook applications. How do they collect such data?
From what I understand, FB provides app developers with stats for their apps (same with fan page admins). But how do I get these data programatically, is there any API for these?
Facebook does provide all of this through the graph api, which is at graph.facebook.com. To get all the extended data, you will need an access token.
Details, at least for applications (an can probably be expanded to pages, since the graph api works for all "objects" on FB) is found at http://developers.facebook.com/docs/api#analytics