Need knowledge on facebook API data retrieve - facebook

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.

Related

Retrieving Facebook Live comment real time from my facebook live streaming

I am new to using Facebook Graph API and I am building a python script that retrieves the user's comments from my Facebook Live Stream real time. The Live stream is on my Facebook page and I am the admin of the page. I read that it is required to have page access token so i got one.
I registered an app which is linked to my Facebook page and got the Page Access token from the Graph API Explorer.
I tried to retrieve a past stream's comments on my page by using this.
https://graph.facebook.com/{post_id}/comments?access_token={page_access_token}
For Live stream it should be
https://streaming-graph.facebook.com/{post_id}/live_comments?access_token={page_access_token}
Only my comments had the "form" JSON object. Comments made by other users does not have the "form" JSON object.
It looked like this
{"created_time":"2019-20-16T10:24:11+0000","message":"3","id":"442894059672528_442896329672301"}
Instead of
{"created_time":"2019-20-16T10:23:27+0000","from":{"name":"User A","id":"117461359653242"},"message":"1000","id":"442894059672528_442895933005674"}
Is it something wrong with the permission or the page access token?
Edit 1: Does the app needs to be submitted and live on Facebook?

Would it be illegal to display a Facebook page in an an Android application?

I am working on an application that needs to allow users to access the Facebook posts of their friends. However, the Facebook API does not allow access to the posts of other people.
I am aware that scraping the users web page for the data is illegal, and was curious if it would be unethical to simply display the Facebook page with the relevant information, rather than to scrape the data and integrate it directly in my app?
I don't see why this would be illegal, but I also don't see much of a difference between just displaying the web page, and reading the web page for the relevant data.

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.

Get user's detailed newsfeed(wall) posts in Facebook

I would like to build a project to know users' behavior when they surf facebook website, especially the advertisements showing in their timeline wall. I have learned the basic idea of facebook graph api, knowing how to access the users' information and their feeds. However, I found that the feeds returned by facebook graph api is not "exactly" what user really see when they open facebook url in their browser. First, in graph api, it doesn't show the advertisements posted by sponsors. Second, the feeds returned by facebook api seem only regarding to my own posts(e.g. the photo tagging me, the posts tagging me). So, I would like to know how to access these information to rebuild a testbed that looks like exactly same as the real facebook website to record people reaction to it and continue my research?
Any idea is welcome ^^
This isn't really possible or rather I don't know any API (Facebook/Twitter/etc) that would do this to their third-party developers. The point of the API is to pull user data, not ads.
Also it sounds like you are using /me/posts or/me/feed instead of /me/home

Can i programatically get the link backs from Facebook to my web-page?

I want to fetch the link backs from facebook to my web-site. Basically I want to fetch how many users have come to my web-site from the like/shared link posted over facebook for my web-site. Can i fetch these values using any of the FB API??
FB API doesn't have that ability. Here's what you do. On your website check the HTTP_REFERER attribute of each web request. When the referrer is Facebook, track it. Then you can know the counts. If you cannot do that, then you can use something like Google Analytics to do the tracking and reporting.