Interrogation with facebook and twitter

1

I need to make a system where given a url of a news item eg: www.dominiodiario.com/2016/09/01/titulo-noticia, to know the interactions that had on facebook and twitter that news.

I know that from the facebook post you can get the likes and the shares, but I do not know how to get to the post from the url, if there is any way.

Thanks, regards!

    
asked by Juan Pablo B 01.09.2016 в 17:07
source

1 answer

1

Welcome to SOes, of pure or simple chance have you tried something?

With regard to facebook :

  

Post / {post-id}

     

An individual entry in a profile's feed. The profile could be a user, page, app, or group.
Translation:
  An individual feed entry for a profile. The profile could be a user, page, app or group.

Excerpted from: link

Regarding twitter :

link

link

What I can think of to solve this is to be able to save the post ID (twitter and facebook) along with the URL in your database and, as a result, play with the aforementioned APIs.

    
answered by 01.09.2016 в 19:20