Facebook API, problem, publish stream

Discussion in 'PHP' started by nedimtx, Jan 12, 2010.

  1. #1
    Hello everybody.

    I get this error:

    Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Feed action request limit reached' in
    Code (markup):
    My code looks like this:

    foreach ($friends_get as $f){
    $message = 'text';
    $attachment = array(
          'name' => 'name',
          'href' => 'http://www.google.com/',
        //  'caption' => '{*actor*} caption',
          'description' => 'desc',
          'properties' => array( ),
          'media' => array(array('type' => 'image',
                                 'src' => 'link_to_img',
                                 'href' => 'http://www.google.com')),
          'latitude' => '41.4',     //Let's add some custom metadata in the form of key/value pairs
          'longitude' => '2.19');
    $action_links = array(
                          array('text' => 'Google',
                                'href' => 'www.google.ba'));
    $attachment = json_encode($attachment);
    $action_links = json_encode($action_links);
    $facebook->api_client->stream_publish($message, $attachment, $action_links, $f, $uid);
    }
    PHP:
    I read somewhere that limit exists on 10 stories. But, how other applications work? Few minutes ago, I tried some applications (sending gifts to friends) and I published about 20 stories on friend's wall. On my application it doesn't work.

    What is the problem. Thanks.
     
    nedimtx, Jan 12, 2010 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well you've already explained what your problem is. You've exceeded your feed limit. What those other apps are doing is unknown but I doubt they've got any more power than you have when it comes to using the api
     
    JAY6390, Jan 12, 2010 IP
  3. nedimtx

    nedimtx Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hmm. Thanks on your answer.. I'd be happy if someone who knows answer me how to post more than 10 posts per day per user...

    Also, do you know how I can get permissions for stream publish auto?
    I know using FBML, but in that way user must to click. What I need to do to show popup automatically?
     
    nedimtx, Jan 12, 2010 IP
  4. stanlogin

    stanlogin Active Member

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    did you suspose you can publish message to any profile/page?
    google search "permission,stream.publish"
     
    stanlogin, Jan 12, 2010 IP
  5. nedimtx

    nedimtx Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I know about that, and how it works - that I need permissions. But, I do not know how to do it.

    How to get popup to ask for permissions.

    <fb:prompt-permission perms="read_stream,publish_stream">Would you like our application to read from and post to your News Feed?</fb:prompt-permission>
    
    Code (markup):
    On this way, user needs to click... I want to get popup automatically...
     
    nedimtx, Jan 12, 2010 IP
  6. stanlogin

    stanlogin Active Member

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #6
    stanlogin, Jan 12, 2010 IP