Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Facebook SDK v5 Posting from Website

  • 01-09-2015 10:23am
    #1
    Registered Users, Registered Users 2 Posts: 1,987 ✭✭✭


    I have the below snippet and it works and posts to a Facebook page as my own user account on Facebook.
    // SDK Version 5.0
    $fb = new Facebook\Facebook([
    	'app_id' => FACEBOOK_APP_ID,
    	'app_secret' => FACEBOOK_APP_SECRET,
    	'default_graph_version' => 'v2.4',
    ]);
    
    // Returns a `Facebook\FacebookResponse` object
    $response = $fb->post('/'.FACEBOOK_PAGE_ID.'/feed', $postData, FACEBOOK_ACCESS_TOKEN);
    
    $postId = $response->getGraphNode();
    

    Now my question is how can I get it to post as the actual page and not my account which is the admin of the page.

    I've had a look at the SDK documentation and I've been going around in circles, there are many examples of V4 but as it's deprecated I'm trying to use V5 and just can't seem to figure it out, any links to post attribution or impersonation I find are dead links in V5 of the SDK.

    Any help greatly appreciated! :confused:


Advertisement