4 Replies - 635 Views - Last Post: 05 October 2012 - 10:11 AM Rate Topic: ***-- 2 Votes

#1 lakhotia21y  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 4
  • Joined: 04-October 12

Error #368: The action attempted has been deemed abusive or is otherwi

Posted 04 October 2012 - 01:06 PM

Am trying to update facebook status through php

This code works fine.

echo '<html><body>';
echo '<form enctype="multipart/form-data" action="'.$graph_url.'" method="POST">';
echo '<input name="message" type="text" value=""><br/><br/>';
echo '<input type="submit" value="POST"/><br/>';
echo '</form>';
echo '</body></html>';


But i get the above error 368 while doing task with below code

$graph_url = "https://graph.facebook.com/me/feed?"."access_token=".$access_token;
$fields = array('message' => 'Hi,');
foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string,'&');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$graph_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST,count($fields));
curl_setopt($ch, CURLOPT_POSTFIELDS,$fields_string);
$result = curl_exec($ch);
$decoded = json_decode($result, true);
print_r($result);



Please can anyone tell me why its giving this error and whats the solutions.

I want to do this task with the code giving error.

So please help to solution this error.

Is This A Good Question/Topic? 0
  • +

Replies To: Error #368: The action attempted has been deemed abusive or is otherwi

#2 atraub  Icon User is offline

  • Pythoneer
  • member icon

Reputation: 759
  • View blog
  • Posts: 2,010
  • Joined: 23-December 08

Re: Error #368: The action attempted has been deemed abusive or is otherwi

Posted 05 October 2012 - 06:08 AM

This is the Python Forum, I assume you meant to post this in the php forum. Moving now.
Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6092
  • View blog
  • Posts: 23,612
  • Joined: 23-August 08

Re: Error #368: The action attempted has been deemed abusive or is otherwi

Posted 05 October 2012 - 06:13 AM

Did you make even the SMALLEST attempt at running the error through Google?
Was This Post Helpful? 0
  • +
  • -

#4 lakhotia21y  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 4
  • Joined: 04-October 12

Re: Error #368: The action attempted has been deemed abusive or is otherwi

Posted 05 October 2012 - 09:07 AM

View PostJackOfAllTrades, on 05 October 2012 - 06:13 AM, said:

Did you make even the SMALLEST attempt at running the error through Google?


yup i tried.
But didn't got perfect answer.
Hoping to get it from here
Was This Post Helpful? -1
  • +
  • -

#5 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5382
  • View blog
  • Posts: 27,350
  • Joined: 10-May 07

Re: Error #368: The action attempted has been deemed abusive or is otherwi

Posted 05 October 2012 - 10:11 AM

View Postlakhotia21y, on 05 October 2012 - 12:07 PM, said:

But didn't got perfect answer.

Asking the same question multiple times does not increase the chances of receiving an error.

Duplicate Topic Closed. Please only reply to the original.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1