I am using php script for liking a post externally through open graph
and facebook API
$response = $facebook->api('/me/og.likes','POST',array('object' => ""));
in my above code what i have to write in object so that my post will be liked .
Thanks
Put the URL of the object in the double quotes like so:
$response = $facebook->api( '/me/og.likes', 'POST', array( 'object' => "http://www.example.com/foo" ) );
But for this to work you must make sure that the document you are linking to has opengraph metadata. Check the docs.