4 Replies - 9679 Views - Last Post: 05 October 2012 - 10:08 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.

Posted 05 October 2012 - 09:04 AM

Error #368: The action attempted has been deemed abusive or is otherwise disallowed
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.

#2 CTphpnwb  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2993
  • View blog
  • Posts: 10,338
  • Joined: 08-August 08

Re: Error #368: The action attempted has been deemed abusive.

Posted 05 October 2012 - 09:37 AM

I'm guessing Facebook doesn't want people (other than Facebook) spamming its members.
Was This Post Helpful? 0
  • +
  • -

#3 no2pencil  Icon User is online

  • Admiral Fancy Pants
  • member icon

Reputation: 5319
  • View blog
  • Posts: 27,223
  • Joined: 10-May 07

Re: Error #368: The action attempted has been deemed abusive.

Posted 05 October 2012 - 09:45 AM

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

This code works fine.
...
Please can anyone tell me why its giving this error and whats the solutions.

The error message is 100% self-explanatory. The fact you pointed out that the code 'works' tells me you didn't read it to understand it. Did you just see 'error' & posted it here?

Verbatim : Error #368: The action attempted has been deemed abusive or is otherwise disallowed

Meaning : Facebook has determined that your code is abusive or is otherwise not allowed to function on their system. They know what you are trying to accomplish, & they have taken measures to not allow it.
Was This Post Helpful? 1
  • +
  • -

#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.

Posted 05 October 2012 - 10:01 AM

View Postno2pencil, on 05 October 2012 - 09:45 AM, said:

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

This code works fine.
...
Please can anyone tell me why its giving this error and whats the solutions.

The error message is 100% self-explanatory. The fact you pointed out that the code 'works' tells me you didn't read it to understand it. Did you just see 'error' & posted it here?

Verbatim : Error #368: The action attempted has been deemed abusive or is otherwise disallowed

Meaning : Facebook has determined that your code is abusive or is otherwise not allowed to function on their system. They know what you are trying to accomplish, & they have taken measures to not allow it.


Am excepting solution for this error any change which can fix it.
Was This Post Helpful? 0
  • +
  • -

#5 no2pencil  Icon User is online

  • Admiral Fancy Pants
  • member icon

Reputation: 5319
  • View blog
  • Posts: 27,223
  • Joined: 10-May 07

Re: Error #368: The action attempted has been deemed abusive.

Posted 05 October 2012 - 10:08 AM

View Postlakhotia21y, on 05 October 2012 - 01:01 PM, said:

Am excepting solution for this error any change which can fix it.

You mean accepting? Or maybe expecting?

Either way it doesn't matter. There isn't a solution, because there isn't an error.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1