Skip to content

Pages API Preview / News-Post / Image or thumbnailWebUrl #8980

@adscreen

Description

@adscreen

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

SharePoint CSOM

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

No response

Issue description

I have created an application where I query the news entries from a specific page in SharePoint. The query so far actually works. I use an app registration with client credential with shared secret.

The URL to retrieve the data from the page is: https://graph.microsoft.com/beta/sites/3965bc3d-71f8-4d42-8489-77faa98db39f/pages/

I only have a problem with the thumbnail/image of the news post. When I create a news post the images are displayed if I use an existing or from the template of SharePoint. If I upload one myself or if I create a news post as a news link from a website I have no access to the image and get the following error message "403 FORBIDDEN".

Currently I am using the thumbnailWebURL. Here is an example URL where the image is displayed: IMAGE

Here is the thumbnailWebURL where I created the news post via news link from an external website: IMAGE

Do I need to retrieve the image data for the thumbnail differently or is this a bug from the API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:pagesCategory: SharePoint Pages API relate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions