Skip to content

Instantly share code, notes, and snippets.

@ashitvora-zz
Created November 4, 2015 12:14
Show Gist options
  • Save ashitvora-zz/2beaa3dd7bdc81f452bf to your computer and use it in GitHub Desktop.
Save ashitvora-zz/2beaa3dd7bdc81f452bf to your computer and use it in GitHub Desktop.
Ask Facebook to scrape information of a link again
public function requestRescrape($url)
{
$graphUrl = 'https://graph.facebook.com/';
$post = 'id=' . urlencode($url) . '&scrape=true';
\Httpful\Request::post($graphUrl)->body($post)->send();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment