Paste link posted on Facebook

6

Does anyone know how to get the link that was posted on Facebook via callback ?

I want to know which link was generated when the user shared it, so I can validate it and even see if it actually made a share.

Having this information I can save it to the bank, including auditing.

I did not find this information in Facebook documentation so far

    
asked by anonymous 23.11.2014 / 15:15

1 answer

1

According to this answer in SOEN, and also assuming you are using the Facebook API, you can process the values of the links entry returned by OpenGraph, accessible from:

https://graph.facebook.com/userID/links?access_token=<access_token>

Being your use authorization key.

Iterate the returned links (apparently a collection of information) and analyze the value of the link (singular) entry.

A consideration made by the author of the original response is that even if you set a high limit for the number of results, you may still have to deal with pageings.

    
23.11.2014 / 15:43