Skip to content

Commit

Permalink
update readme and composer file
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazmul7989 committed Mar 23, 2024
1 parent 5fa29d7 commit d2f5e81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 43,7 @@ $response = FacebookPost::getPost();
```
use NazmulHasan\LaravelFacebookPost\Facades\FacebookPost;
$message = 'Message from laravel application'
$message = 'Message from laravel application';
$response = FacebookPost::storePost($message);
```
Expand All @@ -55,13 55,13 @@ use NazmulHasan\LaravelFacebookPost\Facades\FacebookPost;
$message = 'Message from laravel application'; //message is optional
$url = 'Your image url';
$response = FacebookPost::storePostWithPhoto($url, $message)
$response = FacebookPost::storePostWithPhoto($url, $message);
```
### Update post
```
use NazmulHasan\LaravelFacebookPost\Facades\FacebookPost;
$message = 'Message from laravel application'
$message = 'Message from laravel application';
$post_id = 'Your post id';
$response = FacebookPost::updatePost($post_id, $message);
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 13,9 @@
"fabook-api",
"facebook-page-post",
"facebook-page-feed",
"facebook-page-api"
"facebook-page-api",
"fb-page-feed",
"facebook-page-poster"
],
"autoload": {
"psr-4": {
Expand Down

0 comments on commit d2f5e81

Please sign in to comment.