Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Graph API - Issue cover_photo when creating a test page

I'm developing a Facebook App and i need to create a Test Page.
I'm following the documentation and i'm stuck at the step 3: Creating a test page using Graph API.
It doesnt matter what URL i set to the cover_photo field, i always receive:

(#100) Params cover_photo with a valid URL is required for creating a page.

I tried different size, extension. I also re-used the picture field url.

Here are the parameters of the POST request:

  • category_enum:
    ADVERTISING_AGENCY
  • name:
    Test-Kraken-Name
  • about:
    test about
  • picture

  • cover_photo

Thank you for your help.

like image 913
Megaxr Avatar asked Dec 08 '22 13:12

Megaxr


1 Answers

Thank to the Facebook Developer Community.

So the cover_photo, instead of being a url, must be an object with a url field and the url as value.

As an example in the Graph API Explorer:

name: cover_photo

value: {"url": "https://path.to/image.png"}

like image 156
Megaxr Avatar answered May 16 '23 06:05

Megaxr