Facebook Stream Publish while offline

前端 未结 4 1053
梦毁少年i
梦毁少年i 2021-02-04 22:05

If I have the publish_stream extended permission for a Facebook app, does that allow my app to write on my feed while I\'m offline?

Thanks,
Tee

4条回答
  •  鱼传尺愫
    2021-02-04 22:45

    Just in case anyone stumbles on this looking for a solution using PHP. Using the PHP API, I ended up with this working for me, with help from the FB docs here:

    http://developers.facebook.com/docs/reference/php/facebook-api/

    Note that $users_facebook_id is the Facebook ID of a user who has granted your app permissions with the "publish_stream" permission.

    $access_token = $facebook->getAccessToken();
    
    $ret_obj = $facebook->api('/'.$users_facebook_id.'/feed', 'POST',
                                        array(
                                       'link' => 'http://www.website.com',
                                       'message' => 'Testing'
                                      ));
    

提交回复
热议问题