Giter Club home page Giter Club logo

nazmul7989 / laravel-facebook-post Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 15 KB

This package allow to create, update, delete and get posts from facebook page in laravel application

Home Page: https://developers.facebook.com/docs/pages-api

License: MIT License

PHP 100.00%
facebook-api facebook-graph-api facebook-page-feed facebook-page-post graph-api laravel laravel-facebook-automatic-post laravel-facebook-page-api facebook-page-api laravel-facebook-page-post

laravel-facebook-post's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

laravel-facebook-post's Issues

(#100) 0 does not resolve to a valid user

Hi,

When I use a message post, it works like a charm :

array:4 [▼ // app/Http/Controllers/PostController.php:36
  "status" => "success"
  "status_code" => 200
  "message" => "Post created successfully"
  "post_id" => "388487454337743_122108772806391022"
]

But when I use message port with image, I get :

    ...
            dump($imageUrl, $message);
            $response = FacebookPost::storePostWithPhoto($imageUrl, $message);

I get :

"https://catalogue2024.cappiello.fr/wp-content/uploads/2024/07/64cab3f8976cf9e4268a58c72c049c9c.jpg" // app/Http/Controllers/PostController.php:33
"
Qui a faim ? 🥐 Ce serveur de 1906 nous présente fièrement sa brioche. Cappiello nous rappelle que la gourmandise est un art !
 ▶
" // app/Http/Controllers/PostController.php:33
array:3 [▼ // app/Http/Controllers/PostController.php:36
  "status" => "fail"
  "status_code" => 400
  "message" => "{"error":{"message":"(#100) 0 does not resolve to a valid user ID","type":"OAuthException","code":100,"fbtrace_id":"Atg0OUZSKsaAjRzzbEVUTif"}}"
]

{"error":{"message":"Unsupported get request. Object with ID '61561730669920' does not exist, cannot be loaded due to missing permissions, or does not support t

Hi,

I'm trying to use your plugin, but I'm not having the same result as you.

I could get a Long lived Acces token, but only user token type. When asking for page access token, I get :

Invalid Scopes: manage_pages, pages_show_list. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions

Also, I can only ask for 2 permissions:

  • email
  • user_payment_tokens

I could not find :

pages_show_list
pages_read_engagement
pages_manage_engagement
pages_manage_posts
pages_read_user_content

Also, in .env, I set FACEBOOK_PAGE_ID=61561730669920 from my facebook page URL: https://www.facebook.com/profile.php?id=61561730669920 - Is this correct ? I'm not so familiar with FB API !

When I try to get all posts with

$response = FacebookPost::getPost();

I get :

{"error":{"message":"Unsupported get request. Object with ID '61561730669920' does not exist, cannot be loaded due to missing permissions, or does not support t #2

Is there anything I'm missing ?

Trouble with some pages

Problem:

I can select all the pages around 10... but when I look at the list there are a couple of pages 2 or 3 that do not appear to generate the token... do you know why?

I will send a PR to add the video upload function!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.