PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, November 3, 2022

[FIXED] How to include Group cover photo in Group Info Endpoint on Facebook Graph API

 November 03, 2022     facebook, facebook-graph-api, facebook-javascript-sdk, node.js     No comments   

Issue

I have the following endpoint to retrieve the details of a Facebook group via its id

let groupInfoUrl = `https://graph.facebook.com/${group_id}?access_token=${accessToken}`;

Below is an example of the response I got:

{
  "name": "Group Name",
  "privacy": "OPEN",
  "id": "012345678901234"
}

How can I make the response to also include the Group Cover photo or icon?

Thank you.


Solution

You just have to add fields=cover to your query:

let groupInfoUrl = `https://graph.facebook.com/${group_id}?fields=cover&access_token=${accessToken}`;


Answered By - Soufian
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

1,207,481

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © 2025 PHPFixing