How to get facebook share information with R?

Asked

Viewed 347 times

11

I’d like to know how I can get information about Facebook post shares, such as user name and id and date and time of sharing.

In the package RFacebook you can obtain the same information, but referring to likes and comments, and not to shares.

On Facebook this type of data is public if you inform the publication you are interested in.

  • 1

    I believe that it is not enough for information to be public, but rather to be available on API of facebook. Here I found nothing related to the shares

1 answer

1

First you need to get the posts of the person you want using the getPage to gain access to timeline, after you get the ID of the post you want to use the Object SharedPosts directly on API HTTP do facebook, unfortunately the package RFacebook does not yet support this objeto.

 GET /v2.5/{object-id}/sharedposts HTTP/1.1
 Host: graph.facebook.com

Being the ObjectID the post that you want to get sharing information.

For more information I suggest you consult the address: https://developers.facebook.com/docs/graph-api/reference/v2.5/object/sharedposts

;)

Browser other questions tagged

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