I want to join Facebook Group with Curl and I am using scripts Scripts After .......Login Curl ....... curl_setopt($ch, CURLOPT_REFERER, $url); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path); $result = curl_exec($ch); echo $result; login ok----- Curl Facebook Group Page ....$data = array( 'locale'=>'en_US', 'svn_rev'=>$svn_rev, 'tier'=>'', 'vip'=>$vip, 'static_base'=>'http:\/\/static.ak.fbcdn.net\/', 'www_base'=>'http:\/\/www.facebook.com\/', 'rep_lag'=>$rep_lag, 'fb_dtsg'=>$fb_dtsg, 'ajaxpipe_token'=>$ajaxpipe_token, 'lhsh'=>$lhsh, 'tracking_domain'=>'http:\/\/pixel.facebook.com', 'retry_ajax_on_network_error'=>'1', 'fbid_emoticons'=>'1', '__user'=>$muserid, 'action'=>'join_group', 'outgoing_id'=>$group_id, 'ego_log_data'=>'', 'how_found'=>'friend_browser', 'logging_location'=>'friend_browser', 'lsd'=>'', 'no_flyout_on_click'=>'true', 'post_form_id'=>'postFormId', 'post_form_id_source'=>'AsyncRequest', 'ref_param'=>'unknown', 'group_id'=>$group_id, 'ref'=>'group_jump_header' ); curl_setopt($ch, CURLOPT_URL,'http://facebook.com/ajax/groups/membership/r2j.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $frn = curl_exec($ch); After Curl I received Header Response HTTP/1.1 100 Continue HTTP/1.1 302 Found Content-Type: text/html; charset=utf-8 Content-Length: 0 Connection: keep-alive Date: Thu, 13 Dec 2012 13:09:43 GMT Location: https://www.facebook.com/ajax/groups/membership/r2j.php X-FB-Debug: MgwpoHBqV2AKs0YiByQjih5fhqVBJ68eCl4Xcw9JucQ= HTTP/1.1 500 Internal Server Error Content-Type: text/html; charset=utf-8 X-FB-Debug: nb1ax89d1wTc2bKJN2nRblq4GQJVjJeJ80H3pfxXmMU= Date: Thu, 13 Dec 2012 13:09:44 GMT Connection: keep-alive Content-Length: 0 Can Any body give suggestion regarding this method? Thank and Best Regards