Hi Everybody,
I have use RPX in my forum(Vbulletin).In that forum when any user
register.post or reply then it will be displayed in facebook wall. The
only problem is in action links. I use that code.
$api_key='fgfgfgfgfgf12121211';
$action_links = array('text' => 'Recaption this', 'href' => 'http://
mine.icanhascheezburger.com/default.aspx?tiid=1192742&recap=1#step2');
$post_data1 = array(
'apiKey' => $api_key,
'identifier' => $identifier, // <-- replace this with your own
API key.
'message' => ' has replied for a new thread in Couponwatchdog.To
view it go to, '.$url
'$action_links'=
$action_links
);
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_URL, '
https://rpxnow.com/api/v2/
facebook/stream.publish');
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data1);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$raw_json = curl_exec($curl);
curl_close($curl);
$json = new Services_JSON();
$value = $json->decode($raw_json);
if ($value->stat == 'ok')
{
echo "Posted in wall";
}else{
echo "not posted in wall";
}
if i delete the action links it is working fine. but by giving
action_links it does not post into wall.How i sent action link as a
parameter ? Plese help me.