Capture page information on facebook

Asked

Viewed 766 times

-1

would like some information. Is there any way to get some data from pages not administered by me, like [likes, comments and etc] of some page just stating the URL of this page??

Explanation: is it possible to get information from pages that are not mine? Like, I put the address of the Bradesco page (https://www.facebook.com/Bradesco/) and this application would return me data like: likes, amount of shares all within a period of time... ???

  • 1

    Use Curl + DOM/XPATH, both "by default" already have in PHP.

3 answers

0

facebook provides an api for developers, https://developers.facebook.com/ you can go in there and read the documentation, but at first you will consume a Rest api, if you do not know how to work with the Rest api a quick google search will give you a north.

  • True, but his API allows me to only get information if the page/user authorizes it... would need to do this on some 100 different pages, where these I am not ADM and would not need to request that they enter and allow the capture of the data.... understands?

0


Hello, you can get data from public pages and groups through the Facebook API, just log in to Facebook Developer and register an app to get your credentials. I see you want to do this in PHP so you can use this SDK via Composer.

API documentation:

  • Developers.facebook.com/Docs/Graph-api/Overview

About pages:

  • Developers.facebook.com/Docs/Graph-api/Reference/page/
  • Developers.facebook.com/Docs/Graph-api/Reference/v2.8/insights/

0

As you have been informed, you can use the PHP as cURL and DOM, but this is an exhaustive option.

The Facebook offers a SDK that provides ease/convenience to get information from your platform. For what you need, there is a documentation specific.

Reading tip: What is an SDK?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.