Skip to content

Commit

Permalink
chore: update fb graph api version
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Aug 22, 2024
1 parent 8f123d1 commit 5bc460d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/admin/services/class-rop-facebook-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,9 @@ private function try_post( $new_post, $page_id, $token, $post_id, $posting_type
$post_data['access_token'] = $token;

if ( 'video' === $posting_type ) {
$url = 'https://graph-video.facebook.com/v12.0' . $path;
$url = 'https://graph-video.facebook.com/v16.0' . $path;
} else {
$url = 'https://graph.facebook.com/v12.0' . $path;
$url = 'https://graph.facebook.com/v16.0' . $path;
}

// Scrape post URL before sharing
Expand Down

0 comments on commit 5bc460d

Please sign in to comment.